Boost logo

Boost Users :

Subject: Re: [Boost-users] [Multi-Index] crash on iterator copy or assignment
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2009-03-13 13:29:57


Nat Goodspeed wrote:
> 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.

Doesn't T x((v)); avoid that problem?

Jeff


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net