首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ Builder >

C++ Builder 2010中的nullptr,该怎么处理

2012-07-28 
C++ Builder 2010中的nullptr在C++ Builder 2010的IDE中把nullptr显示成蓝色,表示IDE认为nullptr是一个关

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

热点排行