blitzpp / blitz

Blitz++ Multi-Dimensional Array Library for C++
https://github.com/blitzpp/blitz/wiki
Other
406 stars 84 forks source link

Build of tests fail: calling a protected destructor of class 'blitz::MemoryBlock<double>' #19

Closed yurivict closed 6 years ago

yurivict commented 6 years ago

Getting this error with clang-40:

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;
                                 ^
slayoo commented 6 years ago

Closing as this is addressed here: https://github.com/blitzpp/blitz/pull/34

slayoo commented 6 years ago

and thanks for reporting!