|
Boost Users : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2005-10-01 08:24:21
At the place where the error is encountered you will find the following
comment:
// if your program traps here, it indicates taht your doing one of the
following:
// a) serializing an object of a type marked "track_never" through a
pointer.
// b) saving an non-const object of a type not markd "track_never)
// Either of these conditions may be an indicator of an error usage of the
// serialization library and should be double checked. See documentation on
// object tracking.
Robert Ramey
Peter Broadwell wrote:
> I am new to Boost and am having no luck getting a nested vector
> construct to serialize. Pretty sure I have the rigth includes, but
> keep getting various errors out of g++ (sample below)
>
> Anyone have some sample code that has the right set of magic in it.
>
> Thanks -
>
> ;;peter
>
> = = = start of a sample of the errors I get = = = = = =
>
> g++ -I. -I /usr/kde/3.3/include -I /usr/qt/3/include -I
> /usr/include/boost/test `getconf LFS_CFLAGS` -g -O2 -c testVec.cc
> /usr/include/boost/archive/detail/oserializer.hpp: In function `void
> boost::archive::save(Archive&, T&) [with Archive =
> boost::archive::text_oarchive, T = stashable_t]':
> /usr/include/boost/archive/basic_text_oarchive.hpp:78: instantiated
> from
> `voidboost::archive::basic_text_oarchive<Archive>::save_override(T&,
> int) [with T = stashable_t, Archive = boost::archive::text_oarchive]'
> /usr/include/boost/archive/detail/interface_oarchive.hpp:85:
> instantiated from`Archive&
> boost::archive::detail::interface_oarchive<Archive>::operator<<(T&)
> [with T = stashable_t, Archive = boost::archive::text_oarchive]'
> genDigest.cc:209: instantiated from here
> /usr/include/boost/archive/detail/oserializer.hpp:566: error:
> incomplete type `boost::STATIC_ASSERTION_FAILURE< false>' used in
> nested name specifier
> /usr/include/boost/archive/detail/oserializer.hpp:566: error: size of
> array has non-integral type `<type error>'
>
> = = = end of sample of error - some are much longer ;-) = = =
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