From Jason Turner

[temp.nondep]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpiipazten/{from.md → to.md} +0 -25
tmp/tmpiipazten/{from.md → to.md} RENAMED
@@ -1,25 +0,0 @@
1
- ### Non-dependent names <a id="temp.nondep">[[temp.nondep]]</a>
2
-
3
- Non-dependent names used in a template definition are found using the
4
- usual name lookup and bound at the point they are used.
5
-
6
- [*Example 1*:
7
-
8
- ``` cpp
9
- void g(double);
10
- void h();
11
-
12
- template<class T> class Z {
13
- public:
14
- void f() {
15
- g(1); // calls g(double)
16
- h++; // ill-formed: cannot increment function; this could be diagnosed
17
- // either here or at the point of instantiation
18
- }
19
- };
20
-
21
- void g(int); // not in scope at the point of the template definition, not considered for the call g(1)
22
- ```
23
-
24
- — *end example*]
25
-