
/home/d5000/kedong/src/app/xcp_container/src/PModelContainer.cpp:34: 错误:对 ‘ControlArea::setParentControlArea(NULL)’ 的调用没有匹配的函数
/home/d5000/kedong/sc/app/xcp_container/include/ControlArea.h:25: 附注:备选为:void ControlArea::setParentControlArea(boost::shared_ptr<ControlArea>)
以上是编译错误
ControlArea 是个类
1 wutiantong 2021-01-11 14:59:39 +08:00 不是 NULL,是 nullptr |
2 wohenfuyou OP @wutiantong 我得编译器不支持 nullptr,请问有其他方法么 |
3 HannibaI 2021-01-11 15:25:36 +08:00 shared_ptr::reset() |
4 exiledkingcc 2021-01-11 15:28:47 +08:00 {} |
5 wutiantong 2021-01-11 16:27:10 +08:00 @wohenfuyou 其他方法就是楼上那样的,也就是 boost::shared_ptr<ControlArea>() |
6 wohenfuyou OP 好的 谢谢大家 |
7 6ufq0VLZn0DDkL80 2021-01-12 12:11:16 +08:00 clang 3.0/gcc 4.6 就支持 nullptr 了,这得是多老的编译器。。。 |