Boost logo

Boost :

Subject: Re: [boost] [Serialization] warnings and maybe a 'bug'
From: bernard cupic (bernard.cupic_at_[hidden])
Date: 2009-11-26 03:58:31


   Is it possible tha the problem is in the shared_ptr_helper.hpp file
   in the line 114:
   Ã‚   template<class T>
   Ã‚   struct non_polymorphic {
   Ã‚       static const boost::serialization::extended_type_info *
   Ã‚       get_object_identifier(T & t){
   Ã‚           return boost::serialization::singleton<
   Ã‚               BOOST_DEDUCED_TYPENAME
   Ã‚              Â
   boost::serialization::type_info_implementation<T>::type
   Ã‚ ==>       >::get_const_instance();
   Ã‚       }
   Ã‚   };
   If you compare it with the following code (same file, just below the upper
   code):
   Ã‚   template<class T>
   Ã‚   struct polymorphic {
   Ã‚       static const boost::serialization::extended_type_info *
   Ã‚       get_object_identifier(T & t){
   Ã‚           return boost::serialization::singleton<
   Ã‚               BOOST_DEDUCED_TYPENAME
   Ã‚              Â
   boost::serialization::type_info_implementation<T>::type
   Ã‚ ==>      Â
>::get_const_instance().get_derived_extended_type_info(t);
   Ã‚       }
   Ã‚   };
   it smells like a bug to me.
   Best regards.

-- 
Bernard Cupic
Software Development Manager
USCS d.o.o.
Flaciusova 1, HR-52100 Pula
e-mail: [1]bernard.cupic_at_[hidden]
tel/fax: +385 52 380 687
References
   1. mailto:bernard.cupic_at_[hidden]

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