Boost logo

Boost :

Subject: Re: [boost] [move] abiguious ctor (msvc-10.0)
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-01-11 14:13:30

At Tue, 11 Jan 2011 19:32:55 +0100,
Oliver Kowalke wrote:
> the 2nd one isn't generated by the move lib.
> why is the 2nd version which takes Fn as value equivalent to the 1st
> one?

It's an equally-good match because... that's what the language rules

> I'm confused because gcc accepts the code and msvc rejects it.

The language rules weren't perfectly stable when these implementations
came out (it's a pre-release feature after all) and compilers have
bugs, so there's no cause for confusion :-)

Dave Abrahams
BoostPro Computing

Boost list run by bdawes at, gregod at, cpdaniel at, john at