In file included from serialize.cpp:10:
In file included from /usr/local/include/boost/archive/text_iarchive.hpp:24:
In file included from /usr/local/include/boost/archive/basic_text_iarchive.hpp:30:
In file included from /usr/local/include/boost/archive/detail/common_iarchive.hpp:23:
In file included from /usr/local/include/boost/archive/detail/interface_iarchive.hpp:22:
/usr/local/include/boost/archive/detail/iserializer.hpp:246:24: error: calling a protected destructor of class 'blitz::MemoryBlock<double>'
delete t;
^
/usr/local/include/boost/archive/detail/iserializer.hpp:265:20: note: in instantiation of member function 'boost::archive::detail::heap_allocation<blitz::MemoryBlock<double>
>::doesnt_have_new_operator::invoke_delete' requested here
typex::invoke_delete(t);
^
/usr/local/include/boost/archive/detail/iserializer.hpp:273:13: note: in instantiation of member function
'boost::archive::detail::heap_allocation<blitz::MemoryBlock<double> >::invoke_delete' requested here
invoke_delete(m_p);
^
/usr/local/include/boost/archive/detail/iserializer.hpp:294:36: note: in instantiation of member function 'boost::archive::detail::heap_allocation<blitz::MemoryBlock<double>
>::~heap_allocation' requested here
detail::heap_allocation<T> h;
^
/usr/local/include/boost/serialization/singleton.hpp:118:34: note: in instantiation of member function 'boost::archive::detail::pointer_iserializer<boost::archive::text_iarchive,
blitz::MemoryBlock<double> >::heap_allocation' requested here
static singleton_wrapper t;
^
Getting this error with clang-40: