From Jason Turner

[temp.nondep]

Diff to HTML by rtfpessoa

tmp/tmp5hmmz5cg/{from.md → to.md} RENAMED
@@ -1,23 +1,25 @@
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
  ``` cpp
7
  void g(double);
8
  void h();
9
 
10
  template<class T> class Z {
11
  public:
12
  void f() {
13
  g(1); // calls g(double)
14
- h++; // ill-formed: cannot increment function;
15
- // this could be diagnosed either here or
16
- // at the point of instantiation
17
  }
18
  };
19
 
20
- void g(int); // not in scope at the point of the template
21
- // definition, not considered for the call g(1)
22
  ```
23
 
 
 
 
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
+