13 Mar
2009
13 Mar
'09
6:26 p.m.
Nat Goodspeed:
Peter Dimov wrote:
T x = v; causes an implicit conversion of v to T, with which x is then copy-constructed.
I've started routinely writing
T x(v);
and then changing it when a target compiler misreads it as a scoped function declaration. :-(
I would be very pleased if C++0x kills off The Most Vexing Parse.
In C++0x one would be encouraged to use T x{v};