Boost logo

Boost :

Subject: Re: [boost] Can i do serialization on "wchar_t *"
From: Robert Ramey (ramey_at_[hidden])
Date: 2009-03-09 12:52:01


Do you know for a fact that your compiler and library support wchar_t ?
Is wchar_t a synonym/typedef for 16 byte integer?
What compiler version and library version are you using?

Robert Ramey

Selvaraj Kannan wrote:
> 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,
>>>> 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
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk