[Boost-bugs] [Boost C++ Libraries] #12105: Support std::exception_ptr in boost::promise set_exception ??

Subject: [Boost-bugs] [Boost C++ Libraries] #12105: Support std::exception_ptr in boost::promise set_exception ??
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-31 02:45:51


#12105: Support std::exception_ptr in boost::promise set_exception ??
------------------------------+-------------------------
 Reporter: RelicOfTesla@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: TR1
  Version: Boost 1.60.0 | Severity: Problem
 Keywords: |
------------------------------+-------------------------
 MSC_VER=1600,BOOST_VER=106000
 invalid catch
 {{{
 void foo_lang_test()
 {
         printf("MSC_VER=%d,BOOST_VER=%d\n", _MSC_VER , BOOST_VERSION );
         boost::promise<void> pp;
         try
         {
                 throw std::runtime_error("aa");
         }
         catch(...)
         {
                 pp.set_exception(std::current_exception());
         }
         try
         {
                 pp.get_future().get();
         }
         catch(std::exception& e)
         {
                 printf("catch %s\n", e.what());
         }
         catch(...)
         {
                 printf("invalid catch\n");
         }
 }

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12105>
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:19 UTC