Robert Ramey wrote:
>
register_cross_program_class_identifier<class T>(const char *id="T")
>

An alternative could be to use register_type<> as it is, but augment the serialization traits class to provide a

const char* serialization<T>::get_cross_program_class_identifier();

This solution has the advantage that the identifier string can be physically located near the load/save/version functions (which are usually near the class itself).

Alberto Barbati



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


Reply via email to