class EntityHolder {
public:
EntityHolder ( ) { }
EntityHolder (
const EntityHolder& other ) { }
~EntityHolder ( ) { }
EntityHolder&
operator = (
const EntityHolder& other ) {
return *this;
} // =
When I am trying to create boost:shared_ptr, I get the following error:
..\src\Entity.cpp:7:34: error: no matching function for call to 'boost::shared_ptr<orm::EntityHolder>::shared_ptr (orm::EntityHolder&)'
What does this mean?
Looks like you’re trying to pass an object of type
EntityHolderdirectly to the constructor of theshared_ptr, but you’re supposed to give it a pointer, like so: