Boost logo

Boost-Build :

Subject: [Boost-build] boost 1.57 b1 serialisation fails to compile,
From: avib369 . (avibahra_at_[hidden])
Date: 2014-10-27 12:50:05


There is no mention of any changes in the release notes.
Its worth adding this to release notes to warn users, *even* if only
maintenance changes!!

On linux opensuse 113, using gcc 4.5 boost serialisation no longer compiles.

Just including : #include <boost/serialization/weak_ptr.hpp> causes:

In file included from
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr.hpp:29:0,
                 from
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/weak_ptr.hpp:20,
                 from src/InLimit.hpp:22,
                 from src/InLimit.cpp:20:
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:
In static member function ‘static const
boost::serialization::extended_type_info*
boost::serialization::shared_ptr_helper<SPT>::non_polymorphic::get_object_type(U&)’:
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:108:39:
error: ‘type_info_implementation’ in namespace ‘boost::serialization’ does
not name a type
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:108:63:
error: expected template-argument before ‘<’ token
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:108:63:
error: expected ‘>’ before ‘<’ token
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:109:13:
error: template argument 1 is invalid
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:109:16:
error: expected ‘(’ before ‘get_const_instance’
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:109:16:
error: expected ‘;’ before ‘get_const_instance’
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:109:35:
error: there are no arguments to ‘get_const_instance’ that depend on a
template parameter, so a declaration of ‘get_const_instance’ must be
available
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:109:35:
note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing
the use of an undeclared name is deprecated)
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:
In static member function ‘static const
boost::serialization::extended_type_info*
boost::serialization::shared_ptr_helper<SPT>::polymorphic::get_object_type(U&)’:
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:118:39:
error: ‘type_info_implementation’ in namespace ‘boost::serialization’ does
not name a type
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:118:63:
error: expected template-argument before ‘<’ token
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:118:63:
error: expected ‘>’ before ‘<’ token
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:119:13:
error: template argument 1 is invalid
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:119:16:
error: expected ‘(’ before ‘get_const_instance’
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:119:16:
error: expected ‘;’ before ‘get_const_instance’
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:119:35:
error: there are no arguments to ‘get_const_instance’ that depend on a
template parameter, so a declaration of ‘get_const_instance’ must be
available
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:
In member function ‘void
boost::serialization::shared_ptr_helper<SPT>::reset(SPT<T>&, T*)’:
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:131:17:
error: ‘type_info_implementation’ is not a member of ‘boost::serialization’
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:131:67:
error: expected primary-expression before ‘>’ token
/var/tmp/ma0/boost/boost_1_57_0_b1/boost/serialization/shared_ptr_helper.hpp:131:70:
error: ‘::type’ has not been declared

Ta,
    Avi



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk