Boost logo

Boost Users :

From: Ben Hutchings (ben.hutchings_at_[hidden])
Date: 2004-04-29 12:32:49


Christopher D. Russell <cdr_at_[hidden]> wrote:
> Thanks to Ben, Aleksey & John for the quick responses.
> >And yes we know this is pain
> Actually adding a command line switch, or punching the define into
> user.hpp isn't all too bad in the grand scheme of things.
>
> Until Intel provides the cues required, may I suggest that a comment
> be placed in boost/type_traits/is_integral.h at line 38:
>
> #ifndef BOOST_NO_INTRINSIC_WCHAR_T
> // If the following line fails to compile and you're using the Intel
> // compiler, see
> // http://lists.boost.org/MailArchives/boost-users/msg06567.php
<snip>

It seems to me that it would be better still to put

    #ifdef BOOST_NO_INTRINSIC_WCHAR_T
        BOOST_STATIC_ASSERT(is_same<unsigned short, wchar_t>::value);
    #else
        BOOST_STATIC_ASSERT(!is_same<unsigned short, wchar_t>::value);
    #endif

after the conditional definition of BOOST_NO_INTRINSIC_WCHAR_T to
verify that the macro has been set/unset correctly.

Ben.


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