const std::shared_ptr<int> x (new int (2)); const std::shared_ptr<int> y (x);
copying a shared pointer makes changes to the control block where the 'const' shared pointers point to, does that not contradict the constness part?
Aucun commentaire:
Enregistrer un commentaire