what is the correct way to make sure user use share_ptr and not regular ptr?
- by eriks
In my class the constructor is private and i added a static method "CreateMyClassPtr" that uses the constructor and returns a share_ptr of it.
Is it the correct implementation?
Do you think i even have to make sure that shared_ptr will be used? Maybe i should leave it to the user to decide?