--- LucenePlusPlus-rel_3.0.7/include/VariantUtils.h 2015-01-30 18:14:22.000000000 +0200 +++ LucenePlusPlus-rel_3.0.7.new/include/VariantUtils.h 2015-05-24 01:57:01.000000000 +0300 @@ -8,6 +8,7 @@ #define VARIANTUTILS_H #include +#include #include "Lucene.h" #include "MiscUtils.h" @@ -22,7 +23,11 @@ template static TYPE get(VAR var) { +#if BOOST_VERSION < 105800 return var.type() == typeid(TYPE) ? boost::get(var) : TYPE(); +#else + return var.type() == typeid(TYPE) ? boost::relaxed_get(var) : TYPE(); +#endif } template