Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-01-17 21:02:58


"Burc Arpat" <burch_at_[hidden]> wrote in message
news:!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAuNR7Z88Qb0eVToFdSB8PXsKAAAAQAAAARaL
>
> hi,
>
> i recently had some spare time and decided to switch my project from
1.30.0
> to 1.30.2 and also give 1.31.0 rc1 a try. i encountered a rather
strange
> error. i am using intel 8 ( same thing with 7 ) under visual studio
6 with
> sltport 4.5.3 using msvc iostreams
>

>
> --- cut from here ---
> .\PRG\LIBS\BOOST_1_31_0_RC1\boost/type_traits/is_integral.hpp(38):
error:
> class "boost::is_integral<unsigned short>" has already been defined
> BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,wchar_t,true)
>
> .\PRG\LIBS\BOOST_1_31_0_RC1\boost/type_traits/is_integral.hpp(38):
error:
> class "boost::is_integral<const unsigned short>" has already been
defined
> BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,wchar_t,true)
>

The problem is that wchar_t is beign treated as equal to unsigned
short rather than as a built-in type.

I use Intel with VC7.1, and fix the problem with the command-line
option /Zc:wchar_t. I don't know if this will work with VC6. If not,
I you should try defining BOOST_NO_INTRINSIC_WCHAR_T .

HTH.

Jonathan


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