- Fix build with boost 1.60
PR: 199601 Approved by: portmgr blanket
This commit is contained in:
parent
e638ab1a39
commit
8aea8b5853
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=408572
1 changed files with 26 additions and 0 deletions
26
textproc/luceneplusplus/files/patch-include_VariantUtils.h
Normal file
26
textproc/luceneplusplus/files/patch-include_VariantUtils.h
Normal file
|
@ -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>
|
Loading…
Reference in a new issue