
22 Jun
2006
22 Jun
'06
4:50 a.m.
I solved this problem like this. Not sure if it's the best approach,
but it worked for me.
class Mesh
{
int data;
};
class BinaryMesh : public Mesh
{
template<class Archive>
void serialize(Archive& ar, const unsigned int version);
}
class XMLMesh : public Mesh
{
template<class Archive>
void serialize(Archive& ar, const unsigned int version);
}
class TextMesh : public Mesh
{
template<class Archive>
void serialize(Archive& ar, const unsigned int version);
}
On 6/21/06, Bill Lear
On Tuesday, June 20, 2006 at 12:50:37 (+0200) Vidal Roca writes:
It is possible to define more than one serialization format for a data structure with the serialization library? If not, has someone some good purposes to make it to?