[Boost-bugs] [Boost C++ Libraries] #5671: class "boost::exception_ptr" has no suitable copy constructor

Subject: [Boost-bugs] [Boost C++ Libraries] #5671: class "boost::exception_ptr" has no suitable copy constructor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-07-05 13:04:08


#5671: class "boost::exception_ptr" has no suitable copy constructor
------------------------------------------+---------------------------------
 Reporter: Vladislav <phprus@…> | Owner: emildotchevski
     Type: Bugs | Status: new
Milestone: Boost 1.47.0 | Component: exception
  Version: Boost Release Branch | Severity: Showstopper
 Keywords: |
------------------------------------------+---------------------------------
 Compiler: Intel C++ Composer XE 12 update 4.

 Error:
 {{{
 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(275):
 error: class "boost::exception_ptr" has no suitable copy constructor
               return boost::copy_exception(unknown_exception());
                      ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(282):
 error: class "boost::exception_ptr" has no suitable copy constructor
               return boost::copy_exception(unknown_exception(e));
                      ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(290):
 error: class "boost::exception_ptr" has no suitable copy constructor
                   return current_exception_unknown_boost_exception(*be);
                          ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(292):
 error: class "boost::exception_ptr" has no suitable copy constructor
                   return boost::copy_exception(unknown_exception(e));
                          ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(307):
 error: class "boost::exception_ptr" has no suitable copy constructor
                       return
 exception_ptr(shared_ptr<exception_detail::clone_base const>(e));
                              ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(313):
 error: class "boost::exception_ptr" has no suitable copy constructor
                       return
 exception_detail::exception_ptr_static_exception_object<bad_alloc_>::e;
                              ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(319):
 error: class "boost::exception_ptr" has no suitable copy constructor
                       return
 exception_detail::exception_ptr_static_exception_object<bad_exception_>::e;
                              ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(334):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_ptr(shared_ptr<exception_detail::clone_base const>(e.clone()));
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(339):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(344):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(349):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(354):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(359):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(364):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(369):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(374):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(379):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(384):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(389):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(395):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(400):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(406):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(411):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_unknown_std_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(416):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_unknown_boost_exception(e);
                                  ^

 /home/phprus/science/workspace/Boost/libs/boost_1_47_0_beta1/gcc/include/boost/exception/detail/exception_ptr.hpp(421):
 error: class "boost::exception_ptr" has no suitable copy constructor
                           return
 exception_detail::current_exception_unknown_exception();

 ...
 And many similar lines
 }}}


 Fix code (file boost/exception/detail/exception_ptr.hpp, class
 exception_ptr):
 {{{
         exception_ptr( const exception_ptr & other ):
             ptr_(other.ptr_)
             {
             }
 }}}

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