|
Boost : |
Subject: Re: [boost] Boost 1.45 compile error
From: Vicente BOTET (vicente.botet_at_[hidden])
Date: 2010-11-20 08:12:14
> Message du 20/11/10 04:17
> De : "Eric Niebler"
> A : boost-users_at_[hidden], "Boost mailing list"
> Copie à :
> Objet : Re: [boost] Boost 1.45 compile error
>
> (bringing in boost dev...)
>
> This sounds bad. Can anybody confirm?
>
> --
> Eric Niebler
> BoostPro Computing
> http://www.boostpro.com
>
> On 11/19/2010 4:35 PM, gast128 wrote:
> > Hello all,
> >
> > just tried out Boost 1.45 on VStudio 2003 but I got a compile error by only
> > including type_traits:
> >
> > #include
> >
> > int main()
> > {
> > return 0;
> > }
> >
> > C:\Work Sdk\boost_1_45_0\boost\typeof\msvc\typeof_impl.hpp(160) : error C2027:
> > use of undefined type ''
> > C:\Work Sdk\boost_1_45_0\boost\typeof\msvc\typeof_impl.hpp(143) : see
> > declaration of ''
> > C:\Work Sdk\boost_1_45_0\boost\typeof\msvc\typeof_impl.hpp(160) : see
> > reference to class template instantiation '' being compiled
> > C:\Work Sdk\boost_1_45_0\boost\type_traits\common_type.hpp(121) : see
> > reference to class template instantiation '' 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' 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: '' : 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?
>
>
Hi,
I didn't make any tests with MSVC V7.1. If typeof don't works for this compiler maybe we can force BOOST_COMMON_TYPE_DONT_USE_TYPEOF and swithc to the emmulation that don't uses TYPEOF.
#if MSVC 7.1
#define BOOST_COMMON_TYPE_DONT_USE_TYPEOF
#endif
Unfortunately I have no access to my Boost environement as my hard disk is broken. John, can you check this?
Best,
Vicente
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk