在通过vs2010使用boost的date_time库时出现 error C2039:'nullptr_t' :is not a member of 'stlpd_std'\boost_1_53_0\boost\smart_ptr\detail\sp_nullptr_t.hpp(35):error C2039:'nullptr_t' :is not a member of 'stlpd_std'我参考boost程序库完全

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 02:56:44
在通过vs2010使用boost的date_time库时出现 error C2039:'nullptr_t' :is not a member of 'stlpd_std'\boost_1_53_0\boost\smart_ptr\detail\sp_nullptr_t.hpp(35):error C2039:'nullptr_t' :is not a member of 'stlpd_std'我参考boost程序库完全

在通过vs2010使用boost的date_time库时出现 error C2039:'nullptr_t' :is not a member of 'stlpd_std'\boost_1_53_0\boost\smart_ptr\detail\sp_nullptr_t.hpp(35):error C2039:'nullptr_t' :is not a member of 'stlpd_std'我参考boost程序库完全
在通过vs2010使用boost的date_time库时出现 error C2039:'nullptr_t' :is not a member of 'stlpd_std'
\boost_1_53_0\boost\smart_ptr\detail\sp_nullptr_t.hpp(35):error C2039:'nullptr_t' :is not a member of 'stlpd_std'
我参考boost程序库完全开发指南这本书,以及网上的一些资料,使用STLport+boost,相应的编译工作也完成了,但最后使用的时候不需要编译的库没有问题,需要编译的库无法编译,给出的错误是\boost_1_53_0\boost\smart_ptr\detail\sp_nullptr_t.hpp(35):error C2039:'nullptr_t' :is not a member of 'stlpd_std'
试了date_time和regex都是这个问题,最后有重新编译boost,发现在编译的过程就会显示\boost_1_53_0\boost\smart_ptr\detail\sp_nullptr_t.hpp(35):error C2039:'nullptr_t' :is not a member of 'stlpd_std',一直搞不清楚问题处在哪

在通过vs2010使用boost的date_time库时出现 error C2039:'nullptr_t' :is not a member of 'stlpd_std'\boost_1_53_0\boost\smart_ptr\detail\sp_nullptr_t.hpp(35):error C2039:'nullptr_t' :is not a member of 'stlpd_std'我参考boost程序库完全
1.5.3版本的boost 增加了对nullptr的定义,这是在1.4.7版本中没有的.而且依赖于STL中对nullptr_t的定义,但是STLport5.2.1版本中没有引入空指针的类型,这是C++11的新标准.要学最新的boost库,还是使用微软本身的STL吧,虽然被喷成渣,但总比没有review的代码要厉害.