7 Dec
2010
7 Dec
'10
5:24 p.m.
hello, serializing a const char* is not allowed I gather? char* seems not to be allowed either. primitive types pointers are not serializable? I have a struct S{ double d; char c[SIZE]; const char* x; }; template <typename Archive> void serialize(Archive& ar, S& s, const unsigned int version) { ar & s.d; ar & s.c; ar & s.x; } the 3rd one seems to cause the compile error, removing constness didn't help. is one supposed to an array of char or a std::string instead regards,