[serialization] Boost STATIC_WARNING when serializing shared_ptr of a type

I am trying to serialize a std::vector< boost::shared_ptr<SomeType> > but I
am getting a boost STATIC_WARNING in get_derived_extended_type_info, when
compiling the cpp file of the class that owns the vector. Here are the first
few lines of the warning:
1>c:\program files
(x86)\boost\boost_1_36_0\boost\serialization\extended_type_info_typeid.hpp(88)
: warning C4099: 'boost::static_warning_impl<false>::STATIC_WARNING' : type
name first seen using 'struct' now seen using 'class'
1> c:\program files
(x86)\boost\boost_1_36_0\boost\static_warning.hpp(110) : see declaration of
'boost::static_warning_impl<false>::STATIC_WARNING'
1> c:\program files
(x86)\boost\boost_1_36_0\boost\serialization\extended_type_info_typeid.hpp(85)
: while compiling class template member function 'const
boost::serialization::extended_type_info
*boost::serialization::extended_type_info_typeid<T>::get_derived_extended_type_info(const
T &) const'
1> with
1> [
1> T=SomeNamespace::SomeType
1> ]
If I create a std::vector

This a pending error - there is an open TRAK item on it - ignore the warning.
Robert Ramey
"Daniel Roberts"
participants (2)
-
Daniel Roberts
-
Robert Ramey