diff options
Diffstat (limited to 'dev-libs/boost/files/boost-1.42.0-template_arity-gcc45.patch')
-rw-r--r-- | dev-libs/boost/files/boost-1.42.0-template_arity-gcc45.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-libs/boost/files/boost-1.42.0-template_arity-gcc45.patch b/dev-libs/boost/files/boost-1.42.0-template_arity-gcc45.patch new file mode 100644 index 0000000..4a49879 --- /dev/null +++ b/dev-libs/boost/files/boost-1.42.0-template_arity-gcc45.patch @@ -0,0 +1,28 @@ +MPL is broken with GCC 4.5. + +https://bugs.gentoo.org/317969 +https://svn.boost.org/trac/boost/ticket/4061 +https://svn.boost.org/trac/boost/changeset/61467 + +--- a/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp ++++ b/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp +@@ -83,7 +81,7 @@ template< typename F, int N > + struct template_arity_impl + { + BOOST_STATIC_CONSTANT(int, value = +- sizeof(arity_helper(type_wrapper<F>(), arity_tag<N>())) - 1 ++ sizeof(::boost::mpl::aux::arity_helper(type_wrapper<F>(), arity_tag<N>())) - 1 + ); + }; + +--- a/boost/mpl/aux_/template_arity.hpp ++++ b/boost/mpl/aux_/template_arity.hpp +@@ -98,7 +98,7 @@ template< typename F, BOOST_MPL_AUX_NTTP_DECL(int, N) > + struct template_arity_impl + { + BOOST_STATIC_CONSTANT(int, value = +- sizeof(arity_helper(type_wrapper<F>(),arity_tag<N>())) - 1 ++ sizeof(::boost::mpl::aux::arity_helper(type_wrapper<F>(),arity_tag<N>())) - 1 + ); + }; + |