Due to project restrictions, I can't use boost or more modern C++. I have implemented a shared pointer that works for my project needs but I'm struggling with handling constant objects.
I need to be able to do something like -
SharedPtr<MyData> sp(new MyData());
SharedPtr<const MyData> const_sp(sp);