I'm getting these compilation warnings in serialization
/home/mecklen/work/boost-install/include/boost-1_36/boost/serialization/array.hpp: In instantiation of 'void boost::serialization::serialize(Archive&, boost::array&, unsigned int) [with Archive = boost::archive::binary_oarchive, T = double, unsigned int N = 3u]':
/home/mecklen/work/boost-install/include/boost-1_36/boost/serialization/serialization.hpp:133: instantiated from 'void boost::serialization::serialize_adl(Archive&, T&, unsigned int) [with Archive = boost::archive::binary_oarchive, T = boost::array]'
/home/mecklen/work/boost-install/include/boost-1_36/boost/archive/detail/oserializer.hpp:144: instantiated from 'void boost::archive::detail::oserializer::save_object_data(boost::archive::detail::basic_oarchive&, const void*) const [with Archive = boost::archive::binary_oarchive, T = boost::array]'
src/LocationHistory.cpp:73: instantiated from here
/home/mecklen/work/boost-install/include/boost-1_36/boost/serialization/array.hpp:127: warning: unused parameter 'version'
From this code in include/boost-1_36/boost/serialization/array.hpp:
template
void serialize(Archive& ar, boost::array& a, const unsigned int version)
{
ar & make_nvp("elems",a.elems);
}
Could we comment out the unused variable?
Thanks,
--
Robert