--- old/include/cereal/types/common.hpp +++ new/include/cereal/types/common.hpp @@ -106,14 +106,16 @@ t = reinterpret_cast::type const &>( value ); } +#ifndef CEREAL_ENABLE_RAW_POINTER_SERIALIZATION //! Serialization for raw pointers /*! This exists only to throw a static_assert to let users know we don't support raw pointers. */ template inline void CEREAL_SERIALIZE_FUNCTION_NAME( Archive &, T * & ) { static_assert(cereal::traits::detail::delay_static_assert::value, "Cereal does not support serializing raw pointers - please use a smart pointer"); } +#endif //! Serialization for C style arrays template inline