
To serialize the tree use
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
{
ar & type;
ar & name;
ar & parent;
}
I'm not sure what binValue is supposed to be but the following might work
better here
template<class Archive>
void serialize(Archive & ar, const unsigned int version)
{
ar & name;
ar & type;
ar & attribute_list;
}
string name;
int type;
string attribute_list;
..
"??"