
15 Jun
2015
15 Jun
'15
7:38 p.m.
I am attempting to serialize a template class without a default constructor, so I am overriding boost::serialization::save_construct_data(). I'm not sure of the correct syntax to declare that function. The line marked below fails to compile with a "too many template-parameter-lists" error. // Forward declaration of my class template<class Key, class Value, class Hasher> class HashMap; namespace boost { namespace serialization { template<class Archive> template<class Key, class Value, class Hasher> void save_construct_data(Archive &ar, const HashMap< Key, Value, Hasher > *t, const unsigned int file_version); // error here }} Thanks for any help, Kurt