summaryrefslogtreecommitdiffstats
path: root/abs/extra/boost/exceptions.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2012-05-02 01:40:05 (GMT)
committerBritney Fransen <brfransen@gmail.com>2012-05-02 01:40:05 (GMT)
commit196287e30eba5548cf4d6dd9aa1bae309eb68d59 (patch)
treeaefaf1a9f0edffcf65f92108e1a37b1f4ff228da /abs/extra/boost/exceptions.patch
parentd910c2a8c16736475693f0c109ccfe298385009e (diff)
parentd8d48ec69ab59d7d8f0e17fd978b058e845ba71a (diff)
downloadlinhes_pkgbuild-196287e30eba5548cf4d6dd9aa1bae309eb68d59.zip
linhes_pkgbuild-196287e30eba5548cf4d6dd9aa1bae309eb68d59.tar.gz
linhes_pkgbuild-196287e30eba5548cf4d6dd9aa1bae309eb68d59.tar.bz2
Merge branch 'testing' of linhes.org:linhes_pkgbuild into testing
Diffstat (limited to 'abs/extra/boost/exceptions.patch')
-rw-r--r--abs/extra/boost/exceptions.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/abs/extra/boost/exceptions.patch b/abs/extra/boost/exceptions.patch
new file mode 100644
index 0000000..0322db6
--- /dev/null
+++ b/abs/extra/boost/exceptions.patch
@@ -0,0 +1,25 @@
+diff -up boost/numeric/conversion/converter_policies.hpp\~ boost/numeric/conversion/converter_policies.hpp
+--- boost/numeric/conversion/converter_policies.hpp~ 2008-10-13 11:00:03.000000000 +0200
++++ boost/numeric/conversion/converter_policies.hpp 2011-07-22 11:46:40.961876274 +0200
+@@ -20,6 +20,7 @@
+
+ #include "boost/mpl/if.hpp"
+ #include "boost/mpl/integral_c.hpp"
++#include "boost/throw_exception.hpp"
+
+ namespace boost { namespace numeric
+ {
+@@ -159,9 +160,9 @@ struct def_overflow_handler
+ void operator() ( range_check_result r ) // throw(negative_overflow,positive_overflow)
+ {
+ if ( r == cNegOverflow )
+- throw negative_overflow() ;
++ boost::throw_exception( negative_overflow() ) ;
+ else if ( r == cPosOverflow )
+- throw positive_overflow() ;
++ boost::throw_exception( positive_overflow() ) ;
+ }
+ } ;
+
+
+Diff finished. Fri Jul 22 11:46:49 2011