Boost logo

Boost :

Subject: Re: [boost] [move] abiguious ctor (msvc-10.0)
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-01-11 08:57:10


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
reference.

-- 
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