I have a class that is using a C struct, when I use the serialization code:
 
 
typdef struct A
{
     template <class Archive>
     void serialize( Archive & ar, )
     {
          ar & a1;
          ar & a2;
     }
     type1 a1;
     type2 a2;
}
 
I get error  A.h(59): error: this declaration may not have extern "C" linkage
   template<class Archive>
 
How can I archive this C structure which the class referenced?


Yahoo! Personals
Single? There's someone we'd like you to meet.
Lots of someones, actually. Try Yahoo! Personals