Hi,
When I compile code that uses the 1.48.0 serialization library with
icpc 12.3.174, I get this warning, along with screenfuls of
instantiation context:
/n/home00/pjonsson/include/boost/serialization/extended_type_info_typeid.hpp(134):
warning #191: type qualifier is meaningless on cast type
static_cast(p)
^
This is the offending code:
virtual void destroy(void const * const p) const {
boost::serialization::access::destroy(
static_cast(p)
);
The compiler is complaining (correctly, I think) that you can't
dictate whether something returned by value (here, the T const *) is
const or not. Changing the cast to:
static_cast(p)
makes the warning go away. Perhaps someone can make this change?
Regards,
/Patrik J.