
13 Mar
2010
13 Mar
'10
11:36 p.m.
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
//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