Boost logo

Boost :

Subject: Re: [boost] [type_erasure] overloading macro
From: Christophe Henry (christophe.j.henry_at_[hidden])
Date: 2013-02-28 15:26:22


----- Original Message -----
From: "Steven Watanabe" <watanabesj_at_[hidden]>
Newsgroups: gmane.comp.lib.boost.devel
To: <boost_at_[hidden]>
Sent: Thursday, February 28, 2013 5:42 PM
Subject: Re: [type_erasure] overloading macro

> AMDG
>
> On 02/27/2013 01:48 PM, Christophe Henry wrote:
>>>>> Okay, I've traced the problem:
>>>>>
>>>>> BOOST_MPL_ASSERT((boost::is_convertible<Data&&, Data&&>)); // fails
>>>>
>>>> Yes, it also fails on my mingw 4.7.1. Looks like you found the culprit.
>>>>
>>>>> Not quite sure how to solve it though...
>>>>
>>>> Hmmm no idea :(
>>>>
>>>
>>> Does std::is_convertible work?
>>>
>>
>> Oh! Surprisingly, yes.
>>
>
> I'm guessing that std::is_convertible has some other
> problem which is the reason that boost::is_convertible
> is not implemented in the same way. So, I'm
> just disabling the test. This probably won't
> catch mingw.

True, it doesn't ;-)

>Would you mind fiddling with the
> condition at detail/check_call.cpp:118 to make
> it work.

Why not add to this line an
if defined _WIN32 && defined __GNUC__
until the first mingw version where this is solved?

Thanks,
Christophe

> In Christ,
> Steven Watanabe
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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