Re: [Boost-bugs] [Boost C++ Libraries] #5496: Add API for detection of exception

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5496: Add API for detection of exception
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-22 17:28:41


#5496: Add API for detection of exception
-----------------------------------------+----------------------------------
  Reporter: anberlin.myplace@… | Owner: emildotchevski
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: exception
   Version: Boost 1.45.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------+----------------------------------

Comment (by anberlin.myplace@…):

 or add something like

 {{{
 struct __type__
 {
 __type__() { set_current_exception( true ); }
 ~__type__() { set_current_exception( false ); }
 };

 #define BOOST_REGISTER_EXCEPTION __type__ __a__;

 try{ ... }
 catch( ... )
 {
 assert( !has_current_exception() );

 BOOST_REGISTER_EXCEPTION();

 assert( has_current_exception() );

 ...
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5496#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC