
8 Mar
2011
8 Mar
'11
9:36 a.m.
on 07.03.2011 at 13:48 Christopher Jefferson wrote :
So users of a expression-template based xint would need to know about proto::deep_copy? Also, I would expect these problems to become more serious in C++0x code, because users will probably write expressions like: auto i = x + y; Which would be fine for built-in types, and introduce bugs if x or y was an xint::integer, using proto. could we prevent this misusage by making copy constructor of the expression class private (possibly never implementing it)? Since we're talking C++0x, making it =delete would be the right thing. And yes, that should prevent the misuse. Come to think of it, I can't
On 07.03.2011 20:27, SATAN66613 wrote: think of any reason why that wouldn't work. Sebastian