Re: [Boost-bugs] [Boost C++ Libraries] #9710: Support std::exception_ptr in boost::promise

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9710: Support std::exception_ptr in boost::promise
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-31 02:40:35


#9710: Support std::exception_ptr in boost::promise
-------------------------------+---------------------
  Reporter: ikispal@… | Owner: viboes
      Type: Feature Requests | Status: closed
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.55.0 | Severity: Problem
Resolution: wontfix | Keywords: futures
-------------------------------+---------------------

Comment (by RelicOfTesla@…):

 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/9710#comment:8>
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