|
Boost : |
From: Matthias Schabel (boost_at_[hidden])
Date: 2007-02-17 01:20:44
>> How about :
>>
>> v = v;
>
> Ugly, since this means that any copy might trigger a sample.
Only self-copy :
this_type& operator=(const this_type& source)
{
if (this == &source)
{
...trigger sample...
return *this;
}
...normal assignment...
return *this;
}
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk