
4 Mar
2011
4 Mar
'11
6:49 p.m.
On 04/03/2011 19:36, Mathias Gaunard wrote:
On 04/03/2011 19:01, Christopher Jefferson wrote:
There are still cases where COW can beat move semantics. For example, I have need of the same integer in multiple places.
Then you should have all those places refer to the same integer, not make all those places hold a copy of it.
You could use boost::flyweight to achieve this. In any case it's somewhat you build on top of an object for a specific application, not a property of the object itself.