【发布时间】:2014-06-05 20:46:58
【问题描述】:
我正在尝试在 C++ 中创建一个列表,但在我构建代码时它给了我错误。
这是我创建自定义列表的代码:
std::list< osg::ref_ptr<osg::PositionAttitudeTransform> > bulletList = new std::list< osg::ref_ptr<osg::PositionAttitudeTransform> > ;
控制台上的错误是这样的:
错误:从 ‘std::list<osg::ref_ptr<osg::PositionAttitudeTransform> >*’ 转换为非标量类型 ‘std::list<osg::ref_ptr<osg::PositionAttitudeTransform> >’ 请求
我该怎么做?
【问题讨论】:
标签: c++ list build console makefile