Boost logo

Boost Users :

Subject: [Boost-users] Boost 1.45 compile error
From: gast128 (gast128_at_[hidden])
Date: 2010-11-19 16:35:59


Hello all,

just tried out Boost 1.45 on VStudio 2003 but I got a compile error by only
including type_traits:

#include <boost/type_traits.hpp>

int main()
{
   return 0;
}

C:\Work Sdk\boost_1_45_0\boost\typeof\msvc\typeof_impl.hpp(160) : error C2027:
use of undefined type '<Unknown>'
        C:\Work Sdk\boost_1_45_0\boost\typeof\msvc\typeof_impl.hpp(143) : see
declaration of '<Unknown>'
        C:\Work Sdk\boost_1_45_0\boost\typeof\msvc\typeof_impl.hpp(160) : see
reference to class template instantiation '<Unknown>' being compiled
        C:\Work Sdk\boost_1_45_0\boost\type_traits\common_type.hpp(121) : see
reference to class template instantiation '<Unknown>' being compiled
        C:\Work Sdk\boost_1_45_0\boost\type_traits\common_type.hpp(123) : see
reference to class template
instantiation 'boost::type_traits_detail::common_type_2<T,U>' being compiled
C:\Work Sdk\boost_1_45_0\boost\typeof\msvc\typeof_impl.hpp(160) : error C2146:
syntax error : missing ';' before identifier 'wrapped_type'
C:\Work Sdk\boost_1_45_0\boost\typeof\msvc\typeof_impl.hpp(160) : error
C2501: '<Unknown>' : missing storage-class or type specifiers
C:\Work Sdk\boost_1_45_0\boost\typeof\msvc\typeof_impl.hpp(161) : error
C2653: 'wrapped_type' : is not a class or namespace name

afaik it seems located on 121 in 'boost/type_traits/coomon_type.hpp'

Anyone can help?


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