Boost logo

Boost :

From: Alberto Barbati (abarbati_at_[hidden])
Date: 2002-11-15 19:04:30


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk