From dc75da0dc4565af33d6c170249a9bfc459b19456 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 3 Dec 2009 20:31:01 +0000 Subject: [PATCH] Fix sp_typeinfo to match the interface of std::type_info. [SVN r58127] --- include/boost/exception/detail/type_info.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/exception/detail/type_info.hpp b/include/boost/exception/detail/type_info.hpp index 5bcc72d..67bbebd 100644 --- a/include/boost/exception/detail/type_info.hpp +++ b/include/boost/exception/detail/type_info.hpp @@ -48,12 +48,12 @@ boost struct type_info_ { - detail::sp_typeinfo type_; + detail::sp_typeinfo const * type_; char const * name_; explicit - type_info_( detail::sp_typeinfo type, char const * name ): - type_(type), + type_info_( detail::sp_typeinfo const & type, char const * name ): + type_(&type), name_(name) { } @@ -62,14 +62,14 @@ boost bool operator==( type_info_ const & a, type_info_ const & b ) { - return a.type_==b.type_; + return (*a.type_)==(*b.type_); } friend bool operator<( type_info_ const & a, type_info_ const & b ) { - return a.type_before(*b.type_)); } char const *