Date: Tue, 9 Feb 2016 14:59:56 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r408572 - head/textproc/luceneplusplus/files Message-ID: <201602091459.u19Exu3Q053655@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Tue Feb 9 14:59:56 2016 New Revision: 408572 URL: https://svnweb.freebsd.org/changeset/ports/408572 Log: - Fix build with boost 1.60 PR: 199601 Approved by: portmgr blanket Added: head/textproc/luceneplusplus/files/patch-include_VariantUtils.h (contents, props changed) Added: head/textproc/luceneplusplus/files/patch-include_VariantUtils.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/luceneplusplus/files/patch-include_VariantUtils.h Tue Feb 9 14:59:56 2016 (r408572) @@ -0,0 +1,26 @@ +Obtained from: + + https://github.com/luceneplusplus/LucenePlusPlus/commit/1987082cf9278a639d772b4f35a8ae2d34944177 + +--- include/VariantUtils.h.orig 2015-01-30 16:14:22 UTC ++++ include/VariantUtils.h +@@ -8,6 +8,7 @@ + #define VARIANTUTILS_H + + #include <boost/any.hpp> ++#include <boost/version.hpp> + #include "Lucene.h" + #include "MiscUtils.h" + +@@ -22,7 +23,11 @@ public: + + template <typename TYPE, typename VAR> + static TYPE get(VAR var) { ++#if BOOST_VERSION < 105800 + return var.type() == typeid(TYPE) ? boost::get<TYPE>(var) : TYPE(); ++#else ++ return var.type() == typeid(TYPE) ? boost::relaxed_get<TYPE>(var) : TYPE(); ++#endif + } + + template <typename TYPE, typename VAR>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602091459.u19Exu3Q053655>