Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77592 - in branches/release/boost/exception: . detail
From: emil_at_[hidden]
Date: 2012-03-27 15:31:50


Author: emildotchevski
Date: 2012-03-27 15:31:48 EDT (Tue, 27 Mar 2012)
New Revision: 77592
URL: http://svn.boost.org/trac/boost/changeset/77592

Log:
Merging minor tested bugfixes from trunk.
Text files modified:
   branches/release/boost/exception/detail/attribute_noreturn.hpp | 2 +-
   branches/release/boost/exception/error_info.hpp | 3 +++
   branches/release/boost/exception/exception.hpp | 31 +++++++++++++++++++++++++++++--
   branches/release/boost/exception/info.hpp | 2 +-
   branches/release/boost/exception/info_tuple.hpp | 24 ++++++++++++++++++++++++
   5 files changed, 58 insertions(+), 4 deletions(-)

Modified: branches/release/boost/exception/detail/attribute_noreturn.hpp
==============================================================================
--- branches/release/boost/exception/detail/attribute_noreturn.hpp (original)
+++ branches/release/boost/exception/detail/attribute_noreturn.hpp 2012-03-27 15:31:48 EDT (Tue, 27 Mar 2012)
@@ -9,7 +9,7 @@
 #if defined(_MSC_VER)
 #define BOOST_ATTRIBUTE_NORETURN __declspec(noreturn)
 #elif defined(__GNUC__)
-#define BOOST_ATTRIBUTE_NORETURN __attribute__((noreturn))
+#define BOOST_ATTRIBUTE_NORETURN __attribute__((__noreturn__))
 #else
 #define BOOST_ATTRIBUTE_NORETURN
 #endif

Modified: branches/release/boost/exception/error_info.hpp
==============================================================================
--- branches/release/boost/exception/error_info.hpp (original)
+++ branches/release/boost/exception/error_info.hpp 2012-03-27 15:31:48 EDT (Tue, 27 Mar 2012)
@@ -3,4 +3,7 @@
 //Distributed under the Boost Software License, Version 1.0. (See accompanying
 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
+#ifndef UUID_EE7ECCA0433B11E1923E37064924019B
+#define UUID_EE7ECCA0433B11E1923E37064924019B
 namespace boost { template <class Tag,class T> class error_info; }
+#endif

Modified: branches/release/boost/exception/exception.hpp
==============================================================================
--- branches/release/boost/exception/exception.hpp (original)
+++ branches/release/boost/exception/exception.hpp 2012-03-27 15:31:48 EDT (Tue, 27 Mar 2012)
@@ -310,6 +310,11 @@
     namespace
     exception_detail
         {
+#if defined(__GNUC__)
+# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
+# pragma GCC visibility push (default)
+# endif
+#endif
         template <class T>
         struct
         error_info_injector:
@@ -326,6 +331,11 @@
                 {
                 }
             };
+#if defined(__GNUC__)
+# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
+# pragma GCC visibility pop
+# endif
+#endif
 
         struct large_size { char c[256]; };
         large_size dispatch_boost_exception( exception const * );
@@ -373,6 +383,11 @@
     namespace
     exception_detail
         {
+#if defined(__GNUC__)
+# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
+# pragma GCC visibility push (default)
+# endif
+#endif
         class
         clone_base
             {
@@ -386,6 +401,11 @@
                 {
                 }
             };
+#if defined(__GNUC__)
+# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
+# pragma GCC visibility pop
+# endif
+#endif
 
         inline
         void
@@ -410,8 +430,15 @@
         class
         clone_impl:
             public T,
- public clone_base
+ public virtual clone_base
             {
+ struct clone_tag { };
+ clone_impl( clone_impl const & x, clone_tag ):
+ T(x)
+ {
+ copy_boost_exception(this,&x);
+ }
+
             public:
 
             explicit
@@ -430,7 +457,7 @@
             clone_base const *
             clone() const
                 {
- return new clone_impl(*this);
+ return new clone_impl(*this,clone_tag());
                 }
 
             void

Modified: branches/release/boost/exception/info.hpp
==============================================================================
--- branches/release/boost/exception/info.hpp (original)
+++ branches/release/boost/exception/info.hpp 2012-03-27 15:31:48 EDT (Tue, 27 Mar 2012)
@@ -97,7 +97,7 @@
                     {
                     shared_ptr<error_info_base> const & p = i->second;
 #ifndef BOOST_NO_RTTI
- BOOST_ASSERT( BOOST_EXCEPTION_DYNAMIC_TYPEID(*p).type_==ti.type_ );
+ BOOST_ASSERT( *BOOST_EXCEPTION_DYNAMIC_TYPEID(*p).type_==*ti.type_ );
 #endif
                     return p;
                     }

Modified: branches/release/boost/exception/info_tuple.hpp
==============================================================================
--- branches/release/boost/exception/info_tuple.hpp (original)
+++ branches/release/boost/exception/info_tuple.hpp 2012-03-27 15:31:48 EDT (Tue, 27 Mar 2012)
@@ -19,6 +19,30 @@
 boost
     {
     template <
+ class E >
+ inline
+ E const &
+ operator<<(
+ E const & x,
+ tuple< > const & v )
+ {
+ return x;
+ }
+
+ template <
+ class E,
+ class Tag1,class T1 >
+ inline
+ E const &
+ operator<<(
+ E const & x,
+ tuple<
+ error_info<Tag1,T1> > const & v )
+ {
+ return x << v.template get<0>();
+ }
+
+ template <
         class E,
         class Tag1,class T1,
         class Tag2,class T2 >


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk