
7 Mar
2011
7 Mar
'11
7:27 p.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)? -- Pavel P.S. if you notice a grammar mistake or weird phrasing in my message please point it out