Boost logo

Boost Users :

From: Jeffrey Holle (jeff.holle_at_[hidden])
Date: 2004-12-03 13:56:51


At this point, the last compilation problem in applying the
boost.serialization library to my application has to do with pointers.

Specifically, its pointers to std::string and char member attributes.

I have other pointer member attributes that compile successfully, but
this point to objects that have serialize methods.

I have attempted use of register_type and am including
"serialization/string.hpp" in the modules that have pointer to string
attributes. These actions were not affective.

As an example of the type of compilation error, when I uncomment the
following attribute's archive attempt:
   char *m_pByPointerPrefix;
I get:

/home/jholle/boost_1_32_0/boost/serialization/access.hpp: In static
member function `static void
boost::serialization::access::serialize(Archive&, T&, unsigned int)
[with Archive = boost::archive::binary_iarchive, T = char]':
/home/jholle/boost_1_32_0/boost/serialization/serialization.hpp:78:
instantiated from `void boost::serialization::serialize(Archive&, T&,
unsigned int) [with Archive = boost::archive::binary_iarchive, T = char]'
/home/jholle/boost_1_32_0/boost/serialization/serialization.hpp:121:
instantiated from `void boost::serialization::serialize_adl(Archive&,
T&, unsigned int) [with Archive = boost::archive::binary_iarchive, T =
char]'
/home/jholle/boost_1_32_0/boost/archive/detail/iserializer.hpp:155:
instantiated from `void boost::archive::detail::iserializer<Archive,
T>::load_object_data(boost::archive::detail::basic_iarchive&, void*,
unsigned int) const [with Archive = boost::archive::binary_iarchive, T =
char]'
VariableName.cpp:102: instantiated from here
/home/jholle/boost_1_32_0/boost/serialization/access.hpp:106: error:
request for member `serialize' in `t', which is of non-class type `char'

What is the solution to this?


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