|
Boost Users : |
From: Chris Coleman (cqc_at_[hidden])
Date: 2005-07-20 01:54:32
Robert Ramey wrote:
>
>Why didn't your just change the above to?:
>
>const gps_position* p_g = new gps_position(35, 59, 24.567f);
>oa << p_g; // causes the error's below
>
Ok, I'm obviously still missing something, because:
oa << memory->pull_slice(slice_id);
gives:
zz_control.cpp:46: error: no match for 'operator<<' in 'oa <<
((zz_memory*)((const
zz_control*)this)->zz_control::memory)->zz_memory::pull_slice(slice_id)'
/usr/local/include/boost/archive/detail/interface_oarchive.hpp:84: note:
candidates are: Archive&
boost::archive::detail::interface_oarchive<Archive>::operator<<(T&)
[with T = const zz_memory_slice*, Archive = boost::archive::text_oarchive]
And:
const zz_memory_slice* s = memory->pull_slice(slice_id);
oa << s;
gives:
/usr/local/include/boost/archive/detail/oserializer.hpp: In function
'void boost::archive::save(Archive&, T&) [with Archive =
boost::archive::text_oarchive, T = const zz_memory_slice*]':
/usr/local/include/boost/archive/basic_text_oarchive.hpp:78:
instantiated from 'void
boost::archive::basic_text_oarchive<Archive>::save_override(T&, int)
[with T = const zz_memory_slice*, Archive = boost::archive::text_oarchive]'
/usr/local/include/boost/archive/detail/interface_oarchive.hpp:85:
instantiated from 'Archive&
boost::archive::detail::interface_oarchive<Archive>::operator<<(T&)
[with T = const zz_memory_slice*, Archive = boost::archive::text_oarchive]'
zz_control.cpp:46: instantiated from here
/usr/local/include/boost/archive/detail/oserializer.hpp:560: error:
invalid application of 'sizeof' to incomplete type
'boost::STATIC_ASSERTION_FAILURE<false>'
Cheers
Chris
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net