Hi,
I'm facing some compilation problem when I use text archive. But the same
code works fine when I use binary archive. And it does write something on
disk with specified file name (I'm yet to finish the restore part.
Otherwise, I could've said it works). Do I need to do something differently?
The error I get is something like following:
------------------------------------------------------------------------------------------
/boost/1_35_0/include/boost/archive/detail/oserializer.hpp: In function
‘void boost::archive::save(Archive&, T&) [with Archive =
boost::archive::text_oarchive, T = TableMgr*]’:
/boost/1_35_0/include/boost/archive/detail/common_oarchive.hpp:64:
instantiated from ‘void
boost::archive::detail::common_oarchive<Archive>::save_override(T&, int)
[with T = TableMgr*, Archive = boost::archive::text_oarchive]’
/boost/1_35_0/include/boost/archive/basic_text_oarchive.hpp:75:
instantiated from ‘void
boost::archive::basic_text_oarchive<Archive>::save_override(T&, int) [with T
= TableMgr*, Archive = boost::archive::text_oarchive]’
/boost/1_35_0/include/boost/archive/detail/interface_oarchive.hpp:64:
instantiated from ‘Archive&
boost::archive::detail::interface_oarchive<Archive>::operator<<(T&) [with T
= TableMgr*, Archive = boost::archive::text_oarchive]’
/remote/gsoumen/hiers/trunk/code/cmds/Cmds.cpp:1518: instantiated from
here
/boost/1_35_0/include/boost/archive/detail/oserializer.hpp:564: error:
invalid application of ‘sizeof’ to incomplete type
‘boost::STATIC_ASSERTION_FAILURE<false>’
cc1plus: warnings being treated as errors
------------------------------------------------------------------------------------------
My code is something like following:
#include