
11 Jan
2011
11 Jan
'11
7:13 p.m.
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 say.
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