|
Boost : |
Subject: Re: [boost] sp_convertible<> on MSVC10
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2010-02-19 18:35:03
On 20.02.2010 2:04, Zachary Turner wrote:
> On Fri, Feb 19, 2010 at 9:50 AM, Zachary Turner<divisortheory_at_[hidden]>wrote:
>
> In the meantime, how about implementing a workaround for MSVC10 release
> candidate that simply uses std::tr1::is_convertible?
>
> template< class Y, class T> struct sp_convertible
> {
> enum _vt { value = std::is_convertible<Y*, T*>::value };
> };
>
> works fine.
Just a side note. While making such workarounds, please, don't forget
about non-MSVC STL implementations, such as STLPort. AFAIK, it doesn't
have TR1 in it.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk