
12 Feb
2012
12 Feb
'12
1:32 a.m.
on Thu Feb 09 2012, Andrzej Krzemienski <akrzemi1-AT-gmail.com> wrote:
I am thinking of disabling the assignment not because I think it does not belong to references, but because there are two ways of implementing it, and implementing it either way would surprise a different group of programmers. And this would be a "run-time surprise". Instead my choice (not necessarily the best one) is to provide a "compile-time surprise".
If value semantics are achievable for this kind of optional, I think it's better to supply that and let the people who don't expect value semantics be surprised at runtime. IMO-ly y'rs, -- Dave Abrahams BoostPro Computing http://www.boostpro.com