|
Boost Users : |
From: Robert Mecklenburg (rmecklenburg_at_[hidden])
Date: 2008-08-12 11:28:43
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<T, N>&, 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<double, 3u>]'
/home/mecklen/work/boost-install/include/boost-1_36/boost/archive/detail/oserializer.hpp:144: instantiated 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 = boost::array<double, 3u>]'
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 <class Archive, class T, std::size_t N>
void serialize(Archive& ar, boost::array<T,N>& a, const unsigned int version)
{
ar & make_nvp("elems",a.elems);
}
Could we comment out the unused variable?
Thanks,
-- Robert
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net