Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2003-05-15 18:10:14


"Jeff Muller" <yg-boost-users_at_[hidden]> writes:

> Originally posted this on 5/6, but it never showed up. Here goes again...
>
> Hi,
>
> The following code:
>
> const bool isWS =
> ::boost::is_base_and_derived<std::wstring,std::wstring>::value;
>
> sets isWS false with VS.NET 2003 (_MSC_VER=1310) in version 1.30.0 of the
> libraries. It is correct with version 1.27.0.

The semantics of is_base_and_derived changed to appear more
accurate. You can get the old semantics by transforming
is_base_and_derived<T,U> into is_convertible<T*,U*>.

HTH,

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net