diff -urdN a/boost-1.58.0-Relax-compile-time-checks-for-all-the-get-functions-.patch b/boost-1.58.0-Relax-compile-time-checks-for-all-the-get-functions-.patch --- a/boost-1.58.0-Relax-compile-time-checks-for-all-the-get-functions-.patch 1970-01-01 01:00:00.000000000 +0100 +++ b/boost-1.58.0-Relax-compile-time-checks-for-all-the-get-functions-.patch 2015-07-30 15:42:50.302352539 +0200 @@ -0,0 +1,48 @@ +From 2f042a19370d856c8e676b4e16e7956587eced9f Mon Sep 17 00:00:00 2001 +From: Antony Polukhin +Date: Wed, 17 Jun 2015 00:42:42 +0300 +Subject: [PATCH] Relax compile time checks for all the 'get' functions and add + more tests + +--- + include/boost/variant/detail/element_index.hpp | 4 ++- + include/boost/variant/polymorphic_get.hpp | 2 +- + test/variant_get_test.cpp | 36 ++++++++++++++++++++++++-- + 3 files changed, 38 insertions(+), 4 deletions(-) + +diff --git a/include/boost/variant/detail/element_index.hpp b/include/boost/variant/detail/element_index.hpp +index bd80bdd..8ea92ec 100644 +--- a/include/boost/variant/detail/element_index.hpp ++++ b/include/boost/variant/detail/element_index.hpp +@@ -16,6 +16,8 @@ + #include "boost/variant/recursive_wrapper_fwd.hpp" + #include "boost/variant/variant_fwd.hpp" + ++#include "boost/type_traits/remove_cv.hpp" ++#include "boost/type_traits/remove_reference.hpp" + #include "boost/mpl/find_if.hpp" + + namespace boost { namespace detail { namespace variant { +@@ -42,7 +44,7 @@ struct element_iterator_impl : + + template + struct element_iterator : +- element_iterator_impl< typename Variant::types, T> ++ element_iterator_impl< typename Variant::types, typename boost::remove_reference::type > + {}; + + template +diff --git a/include/boost/variant/polymorphic_get.hpp b/include/boost/variant/polymorphic_get.hpp +index 36ca386..05d9b0d 100644 +--- a/include/boost/variant/polymorphic_get.hpp ++++ b/include/boost/variant/polymorphic_get.hpp +@@ -77,7 +77,7 @@ struct holds_element_polymorphic : + boost::mpl::not_< + boost::is_same< + typename boost::mpl::end::type, +- typename element_polymorphic_iterator_impl::type ++ typename element_polymorphic_iterator_impl::type >::type + > + > + {}; + diff -urdN a/PKGBUILD b/PKGBUILD --- a/PKGBUILD 2015-07-30 00:05:36.634297520 +0200 +++ b/PKGBUILD 2015-07-30 16:02:04.878998386 +0200 @@ -10,20 +10,23 @@ pkgname=('boost-libs' 'boost') pkgver=1.58.0 _boostver=${pkgver//./_} -pkgrel=2 +pkgrel=3 url='http://www.boost.org/' arch=('i686' 'x86_64') license=('custom') makedepends=('icu>=55.1' 'python' 'python2' 'bzip2' 'zlib' 'openmpi') source=(https://downloads.sourceforge.net/project/${pkgbase}/${pkgbase}/${pkgver}/${pkgbase}_${_boostver}.tar.bz2 - boost-1.58.0-Fix-for-bind-void-mf-ambiguous-resolution-error.patch) + boost-1.58.0-Fix-for-bind-void-mf-ambiguous-resolution-error.patch + boost-1.58.0-Relax-compile-time-checks-for-all-the-get-functions-.patch) sha1sums=('2fc96c1651ac6fe9859b678b165bd78dc211e881' - 'f78d9c6a1ca0c073c21a74d01e6f72e3eb1d8d80') + 'f78d9c6a1ca0c073c21a74d01e6f72e3eb1d8d80' + '41807820f35750e43a5568f9c58544ed0736b90c') prepare() { cd ${pkgbase}_${_boostver} patch -p2 -i ../boost-1.58.0-Fix-for-bind-void-mf-ambiguous-resolution-error.patch + patch -p2 -i ../boost-1.58.0-Relax-compile-time-checks-for-all-the-get-functions-.patch } build() {