C++: identifier rules not working
This question already has an answer here:
The text says "The standard also reserves a set of names" - this does not necessarily mean that names of that form will cause a compiler error or warning. It's just that if you choose to use names of that form, they may conflict with other names defined by the compiler or libraries.
The quote means that there's no guarantee that such names will work: they can conflict with names used by the implementation.
As Mike Seymour write in a comment here,
” You don't need to know the names in the standard library. You just need to know which names are reserved - which you described in one short sentence in the question. The compiler can't tell whether it's compiling your code or the library's, so it can't tell whether or not such names should be allowed - you just need to know this rule (which you do, since you asked a question about it) and follow it.
链接地址: http://www.djcxy.com/p/40320.html上一篇: Mettle C ++测试框架使用非内核
下一篇: C ++:标识符规则不起作用