|
Boost : |
From: Dirk Griffioen (a.griffioen4_at_[hidden])
Date: 2003-11-16 15:05:20
Hi,
I'd love to use the serialization lib - but I get a couple of compilation
errors.
I've looked through the mail archive (tried the 'int' patch) but that does
not help - so:
The errors are:
g:\dev\stl\boost\boost\archive\basic_binary_iarchive.hpp(114) : while
compiling class-template member function 'void
boost::archive::basic_binary_iarchive<IStream>::load_override(boost::archive
::tracking_type &,int) with [IStream=std::istream]';
g:\dev\stl\boost\libs\serialization\src\binary_iarchive.cpp(25) : see
reference to class template instantiation
'boost::archive::basic_binary_iarchive<IStream> with [IStream=std::istream]'
being compiled
g:\dev\stl\boost\boost\mpl\greater.hpp(43) : error C2975: 'C_' : invalid
template argument for 'boost::mpl::bool_', compile-time evaluatable constant
expression expected; g:\dev\stl\boost\boost\mpl\bool.hpp(26) : see
declaration of 'C_';
g:\dev\stl\boost\boost\serialization\iserializer.hpp(186) : see reference to
class template instantiation 'boost::mpl::greater<T1,T2> with
[T1=boost::serialization::implementation_level<size_t>,T2=boost::mpl::int_<0
>]' being compiled;
g:\dev\stl\boost\boost\serialization\iserializer.hpp(185) : while compiling
class-template member function 'void
boost::serialization::detail::load_non_pointer_type<Archive,T>::invoke(Archi
ve &,T &) with
[Archive=boost::archive::basic_binary_iarchive<std::istream>,T=size_t]';
g:\dev\stl\boost\boost\serialization\iserializer.hpp(342) : see reference to
class template instantiation
'boost::serialization::detail::load_non_pointer_type<Archive,T> with
[Archive=boost::archive::basic_binary_iarchive<std::istream>,T=size_t]'
being compiled; g:\dev\stl\boost\boost\archive\basic_binary_iarchive.hpp(63)
: see reference to function template instantiation 'void
boost::serialization::load<boost::archive::basic_binary_iarchive<IStream>,T>
(Archive &,T &) with
[IStream=std::istream,T=size_t,Archive=boost::archive::basic_binary_iarchive
<std::istream>]' being compiled;
g:\dev\stl\boost\boost\archive\basic_binary_iarchive.hpp(131) : see
reference to function template instantiation 'void
boost::archive::basic_binary_iarchive<IStream>::load_override<T>(T &,long)
with [IStream=std::istream,T=size_t]' being compiled;
g:\dev\stl\boost\libs\serialization\src\binary_iarchive.cpp(28) : see
reference to function template instantiation
'boost::archive::basic_binary_iarchive<IStream>
&boost::archive::basic_binary_iarchive<IStream>::operator >><size_t>(T &)
with [IStream=std::istream,T=size_t]' being compiled
g:\dev\stl\boost\boost\serialization\iserializer.hpp(186) : error C2975: 'x'
: invalid template argument for 'boost::STATIC_ASSERTION_FAILURE',
compile-time evaluatable constant expression expected;
g:\dev\stl\boost\boost\static_assert.hpp(29) : see declaration of 'x'
g:\dev\stl\boost\boost\serialization\iserializer.hpp(186) : error C2027: use
of undefined type 'boost::STATIC_ASSERTION_FAILURE<x> with [x=false]';
g:\dev\stl\boost\boost\serialization\iserializer.hpp(186) : see reference to
class template instantiation 'boost::STATIC_ASSERTION_FAILURE<x> with
[x=false]' being compiled
g:\dev\stl\boost\boost\mpl\greater_equal.hpp(43) : error C2975: 'C_' :
invalid template argument for 'boost::mpl::bool_', compile-time evaluatable
constant expression expected; g:\dev\stl\boost\boost\mpl\bool.hpp(26) : see
declaration of 'C_'; g:\dev\stl\boost\boost\mpl\if.hpp(64) : see reference
to class template instantiation 'boost::mpl::greater_equal<T1,T2> with
[T1=boost::serialization::implementation_level<size_t>,T2=boost::mpl::int_<3
>]' being compiled; g:\dev\stl\boost\boost\mpl\apply_if.hpp(36) : see
reference to class template instantiation 'boost::mpl::if_<C,T1,T2> with
[C=boost::mpl::greater_equal<boost::serialization::implementation_level<size
_t>,boost::mpl::int_<3>>,T1=boost::mpl::identity<boost::serialization::detai
l::load_non_pointer_type<boost::archive::basic_binary_iarchive<std::istream>
,size_t>::load>,T2=boost::mpl::apply_if<boost::mpl::greater_equal<boost::ser
ialization::implementation_level<size_t>,boost::mpl::int_<2>>,boost::mpl::id
entity<boost::serialization::detail::load_non_pointer_type<boost::archive::b
asic_binary_iarchive<std::istream>,size_t>::load_only>,boost::mpl::identity<
boost::serialization::detail::load_non_pointer_type<boost::archive::basic_bi
nary_iarchive<std::istream>,size_t>::load_primitive>>]' being compiled;
g:\dev\stl\boost\boost\serialization\iserializer.hpp(208) : see reference to
class template instantiation 'boost::mpl::apply_if<C,F1,F2> with
[C=boost::mpl::greater_equal<boost::serialization::implementation_level<size
_t>,boost::mpl::int_<3>>,F1=boost::mpl::identity<boost::serialization::detai
l::load_non_pointer_type<boost::archive::basic_binary_iarchive<std::istream>
,size_t>::load>,F2=boost::mpl::apply_if<boost::mpl::greater_equal<boost::ser
ialization::implementation_level<size_t>,boost::mpl::int_<2>>,boost::mpl::id
entity<boost::serialization::detail::load_non_pointer_type<boost::archive::b
asic_binary_iarchive<std::istream>,size_t>::load_only>,boost::mpl::identity<
boost::serialization::detail::load_non_pointer_type<boost::archive::basic_bi
nary_iarchive<std::istream>,si
ze_t>::load_primitive>>]' being compiled
g:\dev\stl\boost\boost\mpl\if.hpp(68) : error C2975: 'C' : invalid template
argument for 'boost::mpl::if_c', compile-time evaluatable constant
expression expected; g:\dev\stl\boost\boost\mpl\if.hpp(34) : see declaration
of 'C'
g:\dev\stl\boost\boost\mpl\greater_equal.hpp(43) : error C2975: 'C_' :
invalid template argument for 'boost::mpl::bool_', compile-time evaluatable
constant expression expected; g:\dev\stl\boost\boost\mpl\bool.hpp(26) : see
declaration of 'C_'; g:\dev\stl\boost\boost\mpl\if.hpp(64) : see reference
to class template instantiation 'boost::mpl::greater_equal<T1,T2> with
[T1=boost::serialization::implementation_level<size_t>,T2=boost::mpl::int_<2
>]' being compiled; g:\dev\stl\boost\boost\mpl\apply_if.hpp(36) : see
reference to class template instantiation 'boost::mpl::if_<C,T1,T2> with
[C=boost::mpl::greater_equal<boost::serialization::implementation_level<size
_t>,boost::mpl::int_<2>>,T1=boost::mpl::identity<boost::serialization::detai
l::load_non_pointer_type<boost::archive::basic_binary_iarchive<std::istream>
,size_t>::load_only>,T2=boost::mpl::identity<boost::serialization::detail::l
oad_non_pointer_type<boost::archive::basic_binary_iarchive<std::istream>,siz
e_t>::load_primitive>]' being compiled;
g:\dev\stl\boost\boost\mpl\apply_if.hpp(39) : see reference to class
template instantiation 'boost::mpl::apply_if<C,F1,F2> with
[C=boost::mpl::greater_equal<boost::serialization::implementation_level<size
_t>,boost::mpl::int_<2>>,F1=boost::mpl::identity<boost::serialization::detai
l::load_non_pointer_type<boost::archive::basic_binary_iarchive<std::istream>
,size_t>::load_only>,F2=boost::mpl::identity<boost::serialization::detail::l
oad_non_pointer_type<boost::archive::basic_binary_iarchive<std::istream>,siz
e_t>::load_primitive>]' being compiled
g:\dev\stl\boost\boost\mpl\if.hpp(68) : error C2975: 'C' : invalid template
argument for 'boost::mpl::if_c', compile-time evaluatable constant
expression expected;
Could anyone help?
I have a boost_1_30_2 installation, vc71 with native stk (no stlport).
Thanks a bunch!
Dirk Griffioen
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk