1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
aud_seri_simple.cpp: In instantiation of ‘void Audi::serialize(Archive&, unsigned int) [with Archive = boost::archive::binary_oarchive]’:
/usr/include/boost/serialization/access.hpp:116:9: required from ‘static void boost::serialization::access::serialize(Archive&, T&, unsigned int) [with Archive = boost::archive::binary_oarchive; T = Audi]’
/usr/include/boost/serialization/serialization.hpp:68:22: required from ‘void boost::serialization::serialize(Archive&, T&, unsigned int) [with Archive = boost::archive::binary_oarchive; T = Audi]’
/usr/include/boost/serialization/serialization.hpp:126:14: required from ‘void boost::serialization::serialize_adl(Archive&, T&, unsigned int) [with Archive = boost::archive::binary_oarchive; T = Audi]’
/usr/include/boost/archive/detail/oserializer.hpp:153:40: required from ‘void boost::archive::detail::oserializer<Archive, T>::save_object_data(boost::archive::detail::basic_oarchive&, const void*) const [with Archive = boost::archive::binary_oarchive; T = Audi]’
/usr/include/boost/archive/detail/oserializer.hpp:106:1: required from ‘class boost::archive::detail::oserializer<boost::archive::binary_oarchive, Audi>’
/usr/include/boost/archive/detail/oserializer.hpp:221:31: [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/usr/include/boost/serialization/export.hpp:86:1: required from ‘struct boost::archive::detail::ptr_serialization_support<boost::archive::binary_oarchive, Audi>’
/usr/include/boost/archive/detail/register_archive.hpp:25:8: required from ‘struct boost::archive::detail::_ptr_serialization_support<boost::archive::binary_oarchive, Audi>’
/usr/include/boost/archive/binary_oarchive.hpp:57:1: required by substitution of ‘template<class Serializable> typename boost::archive::detail::_ptr_serialization_support<boost::archive::binary_oarchive, Serializable>::type boost::archive::detail::instantiate_ptr_serialization(Serializable*, boost::archive::binary_oarchive*, boost::archive::detail::adl_tag) [with Serializable = Audi]’
/usr/include/boost/serialization/export.hpp:123:38: required from ‘void boost::archive::detail::extra_detail::guid_initializer<T>::export_guid(mpl_::false_) const [with T = Audi; mpl_::false_ = mpl_::bool_<false>]’
/usr/include/boost/serialization/export.hpp:133:9: required from ‘const boost::archive::detail::extra_detail::guid_initializer<T>& boost::archive::detail::extra_detail::guid_initializer<T>::export_guid() const [with T = Audi]’
aud_seri_simple.cpp:84:1: required from here
aud_seri_simple.cpp:79:12: error: invalid const_cast from type ‘const int*’ to type ‘Audi*’
ar & const_cast<Audi &>(_hp);
^~~~~~~~~~~~~~~~~~~~~~~
aud_seri_simple.cpp:80:12: error: invalid const_cast from type ‘const string*’ {aka ‘const std::__cxx11::basic_string<char>*’} to type ‘Audi*’
ar & const_cast<Audi &>(_owner);
^~~~~~~~~~~~~~~~~~~~~~~~~~
aud_seri_simple.cpp: In instantiation of ‘void Audi::serialize(Archive&, unsigned int) [with Archive = boost::archive::binary_iarchive]’:
/usr/include/boost/serialization/access.hpp:116:9: required from ‘static void boost::serialization::access::serialize(Archive&, T&, unsigned int) [with Archive = boost::archive::binary_iarchive; T = Audi]’
/usr/include/boost/serialization/serialization.hpp:68:22: required from ‘void boost::serialization::serialize(Archive&, T&, unsigned int) [with Archive = boost::archive::binary_iarchive; T = Audi]’
/usr/include/boost/serialization/serialization.hpp:126:14: required from ‘void boost::serialization::serialize_adl(Archive&, T&, unsigned int) [with Archive = boost::archive::binary_iarchive; T = Audi]’
/usr/include/boost/archive/detail/iserializer.hpp:189:40: required from ‘void boost::archive::detail::iserializer<Archive, T>::load_object_data(boost::archive::detail::basic_iarchive&, void*, unsigned int) const [with Archive = boost::archive::binary_iarchive; T = Audi]’
/usr/include/boost/archive/detail/iserializer.hpp:121:1: required from ‘class boost::archive::detail::iserializer<boost::archive::binary_iarchive, Audi>’
/usr/include/boost/archive/detail/iserializer.hpp:370:31: [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/usr/include/boost/serialization/export.hpp:86:1: required from ‘struct boost::archive::detail::ptr_serialization_support<boost::archive::binary_iarchive, Audi>’
/usr/include/boost/archive/detail/register_archive.hpp:25:8: required from ‘struct boost::archive::detail::_ptr_serialization_support<boost::archive::binary_iarchive, Audi>’
/usr/include/boost/archive/binary_iarchive.hpp:57:1: required by substitution of ‘template<class Serializable> typename boost::archive::detail::_ptr_serialization_support<boost::archive::binary_iarchive, Serializable>::type boost::archive::detail::instantiate_ptr_serialization(Serializable*, boost::archive::binary_iarchive*, boost::archive::detail::adl_tag) [with Serializable = Audi]’
/usr/include/boost/serialization/export.hpp:123:38: required from ‘void boost::archive::detail::extra_detail::guid_initializer<T>::export_guid(mpl_::false_) const [with T = Audi; mpl_::false_ = mpl_::bool_<false>]’
/usr/include/boost/serialization/export.hpp:133:9: required from ‘const boost::archive::detail::extra_detail::guid_initializer<T>& boost::archive::detail::extra_detail::guid_initializer<T>::export_guid() const [with T = Audi]’
aud_seri_simple.cpp:84:1: required from here
aud_seri_simple.cpp:79:12: error: invalid const_cast from type ‘const int*’ to type ‘Audi*’
ar & const_cast<Audi &>(_hp);
^~~~~~~~~~~~~~~~~~~~~~~
aud_seri_simple.cpp:80:12: error: invalid const_cast from type ‘const string*’ {aka ‘const std::__cxx11::basic_string<char>*’} to type ‘Audi*’
ar & const_cast<Audi &>(_owner);
^~~~~~~~~~~~~~~~~~~~~~~~~~
| |