Boost logo

Boost Users :

Subject: Re: [Boost-users] serialization error for a struct
From: alev mutlu (koor230_at_[hidden])
Date: 2010-03-14 07:21:40


I can't manage it. Can someone help me in more detail?

On Sun, Mar 14, 2010 at 1:36 AM, Steven Watanabe <watanabesj_at_[hidden]>wrote:

> AMDG
>
>
> alev mutlu wrote:
>
>> I am very new to boost. I am getting a serialization error, and I have no
>> idea about what to do
>>
>> #include <boost/serialization/string.hpp>
>> //some other headers
>>
>> struct field {
>> std::string field_name;
>> std::string field_type;
>> std::string field_ref;
>> std::string field_colType;
>> };
>>
>> int main(int argc, char* argv[]){
>>
>> vector<field> C;
>> // other definitions
>> // populating the C vector
>>
>> scatter(world, C, relMyValues, w_mySize, 0);
>>
>> }
>>
>> and I got
>> error: struct field has no member named serialize
>>
>> what should I do?
>>
>>
>
> You should define a serialize function. See
> http://www.boost.org/libs/serialization/doc/tutorial.html#simplecase
> for an example.
>
>
> In Christ,
> Steven Watanabe
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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