Skip to content

Commit d9b1dde

Browse files
author
Colin Robertson
committed
small tweaks
1 parent de74c34 commit d9b1dde

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/build/reference/permissive-standards-conformance.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ const char (&z)[2] = argc > 3 ? "A" : "B"; // const char* without /Zc:ternary
310310
311311
#### Name dependency analysis
312312
313-
When the **/permissive-** option is set in Visual Studio 2017 Update 3, the compiler parses function and class template definitions, identifying dependent and non-dependent names used in templates as required for two-phase look-up. In this release, only name dependency analysis is performed. In particular, non-dependent names that are not declared in the context of a template definition cause a diagnostic message as required by the ISO C++ standards. However, binding of non-dependent names that require argument dependent look up in the definition context is not done.
313+
When the **/permissive-** option is set in Visual Studio 2017 Update 3, the compiler parses function and class template definitions, identifying dependent and non-dependent names used in templates as required for two-phase name look-up. In this release, only name dependency analysis is performed. In particular, non-dependent names that are not declared in the context of a template definition cause a diagnostic message as required by the ISO C++ standards. However, binding of non-dependent names that require argument dependent look up in the definition context is not done.
314314
315315
```cpp
316316
// dependency.cpp
@@ -319,15 +319,15 @@ When the **/permissive-** option is set in Visual Studio 2017 Update 3, the comp
319319
#include <stdio.h>
320320
321321
void f(long) {
322-
puts("Standard two-phase!");
322+
puts("Standard two-phase name dependency");
323323
}
324324
325325
template <typename T> void g(T t) {
326326
f(t);
327327
}
328328
329329
void f(int) {
330-
puts("Microsoft one-phase!");
330+
puts("Microsoft one-phase name dependency");
331331
}
332332
333333
int main() {

0 commit comments

Comments
 (0)