Topic: const + clever pointers
I want to make constant object the pointer on which will be stored in the clever pointer. But there is a question on that how to make object constant:
const shared_ptr <VariativeData> Settings = std:: make_shared <VariativeData> (); ... Settings-> Add ("gfdgfd", 1135);//THERE IS NO ERROR!!!
How to forbid to edit the object which is under shared_ptr?