C++ Builder 2010中的nullptr
在C++ Builder 2010的IDE中把nullptr显示成蓝色,表示IDE认为nullptr是一个关键字,但在编译的时候,却报错E2451 Undefined symbol 'nullptr'
那么在C++ Builder 2010中到底能不能使用nullptr?怎样使用?
[解决办法]
cb2010的帮助:
Reserved for future use. nullptr is a literal that can be assigned to any pointer to indicate the pointer doesn't point to anything.
Warning: C++Builder does not implement nullptr but does treat it as a keyword when the -Ax compiler flag is set. Do not use nullptr as an identifier.
Retrieved from "http://docwiki.embarcadero.com/RADStudio/en/Nullptr"
Category: C++ Reference