Attempt to make compositions with COWPtr more convenient

This commit is contained in:
Alexey Milovidov 2019-03-24 05:22:39 +03:00
parent c76a4e9dd2
commit af5193736a

View File

@ -236,7 +236,7 @@ public:
* It will guarantee, that mutable object have all subobjects unshared.
*
* NOTE:
* If you override 'mutate' method in inherited classes, don't forget to make it virtual in base class.
* If you override 'mutate' method in inherited classes, don't forget to make it virtual in base class or to make it call a virtual method.
* (COWPtr itself doesn't force any methods to be virtual).
*
* See example in "cow_compositions.cpp".