ERROR:shared_ptr does not name a type

来源:互联网 发布:usb killer淘宝 编辑:程序博客网 时间:2024/04/29 14:43


原因:
可能是因为你的C++版本有问题

解决方法:

#include <boost/make_shared.hpp>

 boost::shared_ptr<Net<float> > net_;


参考文献:

http://stackoverflow.com/questions/11853851/string-in-namespace-std-does-not-name-a-type?spm=5176.8246799.blogcont.5.nFToE8

0 0
原创粉丝点击