Re: [Boost-users] [Serialization]Working without RTTI

I already pointed this out to Robert, the correct use is on the cpp file, not the documentation.
I am also using no RTTI, for me it works fine except that I have to do all sort of strange things to get the thing to link correctly without multiple definitions.
Jean-Noël
-----Message d'origine-----
De : boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] De la part de Alexandre Gacon
Envoyé : vendredi 10 février 2006 10:11
À : boost-users@lists.boost.org
Objet : Re: [Boost-users] [Serialization]Working without RTTI
I looked at the test_no_rtti.cpp and I have a question:
In the cpp file, the macro BOOST_CLASS_TYPE_INFO is used like this:
BOOST_CLASS_TYPE_INFO(
derived_base,
extended_type_info_no_rtti
Hi,
I would like to use the serialization library inside one of my project which do not use the RTTI. I produce a first version using boost::serialization::extended_type_info to produce the key associated to the class.
Is it possible to use my own keys instead of the extended_type_info class to serialize my classes ?
Thank you,
Alexandre Gacon Project Manager
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

RIVASSEAU Jean Noel wrote:
I already pointed this out to Robert, the correct use is on the cpp file, not the documentation.
I am also using no RTTI, for me it works fine
Well, I'm quite gratified that it works well. I wrote the test but I never felt that was a complete test of the concept of using one's own custom type id system (extended_type_info_no_rtti in this case).
except that I have to do all sort of strange things to get the thing to link correctly without multiple definitions.
Hmmm - I wouldn't think that this type of problem is related to the extended_type_info system. You should track this down and find the real cause. You might take a look at demo pimpl which might (or not) shed some light on this. Robert Ramey
participants (2)
-
RIVASSEAU Jean Noel
-
Robert Ramey