This only works for a small subset of typeid names since many of them are
not valid XML tags (for one thing any template class cannot be used). And
you really do not wan to leave out the variable name. I really think the
library should provide an archive OPTION to include the typename enclosed in
quotations (preferrably, primitive types should have this options too).
Sean
----- Original Message -----
From: Robert Ramey
To: boost-users@lists.boost.org
Sent: Sunday, October 23, 2005 11:44 AM
Subject: Re: [Boost-users] How to select the name of
classdefinitioninsteadofvariable name in XML archive
Something like this might be made to work. Be aware that the tag name will
vary across compilers. For the serialization system this won't be problem
as the tag name really isn't used for anything. But, depending on what you
plan to use the tag name for, this might or might not be a problem.
Robert Ramey
"Piyush Kapadia"