boost/boost-function_without_exception.patch
OBS User autobuild b39ff1c8b8 Accepting request 17446 from devel:libraries:c_c++
Copy from devel:libraries:c_c++/boost based on submit request 17446 from user psmt

OBS-URL: https://build.opensuse.org/request/show/17446
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/boost?expand=0&rev=33
2009-08-13 15:36:15 +00:00

18 lines
553 B
Diff

The ifdef is misplaced and leads to compilation errors when
when BOOST_NO_EXCEPTIONS is defined (bnc#479659).
--- boost/function/function_template.hpp
+++ boost/function/function_template.hpp
@@ -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;