| 1 | namespace NS { |
|---|---|
| 2 | struct X {}; |
| 3 | void f(X) {} |
| 4 | void operator+(X, X) {} |
| 5 | } // namespace NS |
| 6 | void f() { |
| 7 | NS::X x; |
| 8 | f(x); |
| 9 | x + x; |
| 10 | } |
| 11 |
| 1 | namespace NS { |
|---|---|
| 2 | struct X {}; |
| 3 | void f(X) {} |
| 4 | void operator+(X, X) {} |
| 5 | } // namespace NS |
| 6 | void f() { |
| 7 | NS::X x; |
| 8 | f(x); |
| 9 | x + x; |
| 10 | } |
| 11 |