|
Boost : |
Subject: [boost] Can i do serialization on "wchar_t *"
From: Selvaraj Kannan (selvaraj.kannan_at_[hidden])
Date: 2009-03-08 14:52:01
Hi,
I am getting the following error, while compile. I am using Boost 1.32
Version on Mac OS 10.5.
---------
> g++ -I/usr/local/include/boost-1_32/ -L/usr/local/lib/
-lboost_wserialization Test.cpp
/usr/local/include/boost-1_32/boost/serialization/access.hpp:106: error:
request for member 'serialize' in 't', which is of non-class type 'wchar_t'
/usr/local/include/boost-1_32/boost/serialization/access.hpp: In static
member function 'static void
boost::serialization::access::serialize(Archive&, T&, unsigned int) [with
Archive = boost::archive::binary_wiarchive, T = wchar_t]':
/usr/local/include/boost-1_32/boost/serialization/serialization.hpp:78:
instantiated from 'void boost::serialization::serialize(Archive&, T&,
unsigned int) [with Archive = boost::archive::binary_wiarchive, T =
wchar_t]'
/usr/local/include/boost-1_32/boost/serialization/serialization.hpp:121:
instantiated from 'void boost::serialization::serialize_adl(Archive&, T&,
unsigned int) [with Archive = boost::archive::binary_wiarchive, T =
wchar_t]'
/usr/local/include/boost-1_32/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_wiarchive, T =
wchar_t]'
Test.cpp:27: instantiated from here
/usr/local/include/boost-1_32/boost/serialization/access.hpp:106: error:
request for member 'serialize' in 't', which is of non-class type 'wchar_t'
--------
Can someone help me solving this issue.
regards
S.Kannan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk