There is a class
class Camera { public: void initCamera(); void destroyCamera(); static boost::shared_ptr<Camera> createCamera(); ~Camera(); private: Camera(); static boost::shared_ptr<Camera> cameraInstance; };
When compiling into
Camera.cpp
on the line:boost::shared_ptr<Camera> Camera::cameraInstance = NULL;
The error is:
error error C2440: initialization: unable to convert int to boost :: shared_ptr
In the destructor on the line
cameraInstance = NULL;
I get an error:
error C2679: binary '=': operator not found that accepts the right operand of the 'int' type (or there is no acceptable conversion)
How to fix?