id summary reporter owner description type status milestone component version severity resolution keywords cc 3400 Problem with boost::serialization when only operator new[] is overrided Runar Undheim Robert Ramey "Compilation error in serialization when only operator new[] is overrided. It should also be possible to set operator new[] as private, but that will give another error. {{{ #include #include #include #include #include #include #include #include #include class A { friend class boost::serialization::access; template void serialize(Archive & ar, const unsigned int version) { ar & m_i; } int m_i; public: void* operator new[](std::size_t) { return NULL; } }; BOOST_CLASS_EXPORT(A) int _tmain(int argc, _TCHAR* argv[]) { A *pa; std::ifstream ifs(""test"", std::ios_base::in | std::ios_base::binary); { boost::archive::binary_iarchive ia(ifs); ia >> *pa; } return 0; } }}} " Bugs closed Boost 1.41.0 serialization Boost 1.40.0 Problem fixed