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
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 http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk