Boost logo

Boost :

Subject: Re: [boost] sp_convertible<> on MSVC10
From: Peter Dimov (pdimov_at_[hidden])
Date: 2010-02-19 10:02:02


Zachary Turner wrote:
> The line it's pointing to is this:
>
> enum _vt { value = sizeof( f( static_cast<Y*>(0) ) ) ==
> sizeof(yes) };
>
> and in particular it's having a problem determining the return type
> of f( static_cast<Y*>(0) ). It's thinking that whatever overload
> it's finding for f() here returns type void. Which doesn't make
> sense neither one returns void.
>
> Any ideas?

None. It works on MSVC 7.1, 8.0, 9.0. I'm surprised that they don't test
with Boost for regressions. :-)

You can #define BOOST_SP_NO_SP_CONVERTIBLE to avoid the error.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk