Boost logo

Boost :

Subject: Re: [boost] sp_convertible<> on MSVC10
From: Zachary Turner (divisortheory_at_[hidden])
Date: 2010-02-19 10:35:29


On Fri, Feb 19, 2010 at 9:02 AM, Peter Dimov <pdimov_at_[hidden]> wrote:

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

This is really weird, but I can't reproduce it from my work computer. Maybe
I need to look into it more.


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