----- Original Message -----
From: "Robert Ramey" <
ramey@rrsd.com>
To: <
boost@lists.boost.org>
Sent: Thursday, November 14, 2002 5:45 PM
Subject: Re: [boost] Serialization Submission version 6
>

>
> register_cross_program_class_identifier<class T>(const char *id="T")
>
> This would be invoked for each class declaration. Now we have
> a portable id associated with each class - exactly what we need.
> Polymorphic pointers would archive this tag and use it
> to determine the proper class to construct on loading.
>
> The default class identifier would be the text representation of the class
name.
> (note: in general not necessarily the same as type_info.name() )
> which is going to be sufficent for almost all cases.

The problem that usually arises from this is having to make up class ids for
template classes. type_info does this for you.

Regards,
-Vahan