tmp/tmp72fpzx53/{from.md → to.md}
RENAMED
|
@@ -6,18 +6,18 @@ name lookup finds nothing or finds a function will be treated as a
|
|
| 6 |
to be performed. **Rationale:** It was problematic to call a function
|
| 7 |
template with an explicit template argument list via argument dependent
|
| 8 |
lookup because of the need to have a template with the same name visible
|
| 9 |
via normal lookup. **Effect on original feature:** Previously valid code
|
| 10 |
that uses a function name as the left operand of a `<` operator would
|
| 11 |
-
become ill-formed.
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
struct A {};
|
| 15 |
bool operator<(void (*fp)(), A);
|
| 16 |
void f() {}
|
| 17 |
int main() {
|
| 18 |
A a;
|
| 19 |
f < a; // ill-formed; previously well-formed
|
| 20 |
-
(f) < a; // still well
|
| 21 |
}
|
| 22 |
```
|
| 23 |
|
|
|
|
| 6 |
to be performed. **Rationale:** It was problematic to call a function
|
| 7 |
template with an explicit template argument list via argument dependent
|
| 8 |
lookup because of the need to have a template with the same name visible
|
| 9 |
via normal lookup. **Effect on original feature:** Previously valid code
|
| 10 |
that uses a function name as the left operand of a `<` operator would
|
| 11 |
+
become ill-formed. For example:
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
struct A {};
|
| 15 |
bool operator<(void (*fp)(), A);
|
| 16 |
void f() {}
|
| 17 |
int main() {
|
| 18 |
A a;
|
| 19 |
f < a; // ill-formed; previously well-formed
|
| 20 |
+
(f) < a; // still well-formed
|
| 21 |
}
|
| 22 |
```
|
| 23 |
|