Subject: Re: [boost] [move] abiguious ctor (msvc-10.0)
From: Oliver Kowalke (k-oli_at_[hidden])
Date: 2011-01-11 13:32:55
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?
I'm confused because gcc accepts the code and msvc rejects it.
Am 11.01.2011 14:57, schrieb Dave Abrahams:
> At Tue, 11 Jan 2011 14:10:54 +0100,
> Oliver Kowalke wrote:
>> I get error C2668 with msvc-10.0 - (gcc.4.x works).
>> Any ideas?
>> 1> test.cpp(19): kann 'X::X<boost::_bi::bind_t<R,F,L>>(Fn&&,size_t)' sein
>> 1> test.cpp(16): oder "X::X<boost::_bi::bind_t<R,F,L>>(Fn,size_t)"
> If the library is indeed generating both of those overloads, I'm not
> surprised you're seeing the problem. The 2nd one should take Fn by