[Boost-bugs] [Boost C++ Libraries] #2499: boost/function/function_template.hpp broken for -fno-exceptions.

Subject: [Boost-bugs] [Boost C++ Libraries] #2499: boost/function/function_template.hpp broken for -fno-exceptions.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-11-13 22:23:35


#2499: boost/function/function_template.hpp broken for -fno-exceptions.
----------------------------------+-----------------------------------------
 Reporter: anonymous | Owner: dgregor
     Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: function
  Version: Boost Release Branch | Severity: Showstopper
 Keywords: |
----------------------------------+-----------------------------------------
 compiling boost/function/function_template.hpp w/o exceptions
 from 1.37.0 produces a syntax errors. the second #ifdef in
 the move_assign memeber is missplaced.

 this fixes compilation:

 {{{
 --- function_template.hpp.orig 2008-11-06 16:50:25.000000000 +0100
 +++ function_template.hpp 2008-11-13 23:11:03.000000000 +0100
 @@ -950,10 +950,10 @@
            f.vtable->manager(f.functor, this->functor,
                              boost::detail::function::move_functor_tag);
                   f.vtable = 0;
 -#if !defined(BOOST_NO_EXCEPTIONS)
          } else {
            clear();
          }
 +#if !defined(BOOST_NO_EXCEPTIONS)
        } catch (...) {
          vtable = 0;
          throw;
 }}}

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