I have got:
boost::shared_ptr<Car> sptr;
Now I would like to assign an address from other object:
Car object;
sptr = &object;//error
As we can see in the comment there is an error. So my question is how can I assign an address from some object to shared_ptr? If it was normal a pointer the case would be simply:
Car *ptr;
Car object;
ptr = &object;//ok
How to use in this case boost::shared_ptr? Thanks