Index: include/VariantUtils.h --- include/VariantUtils.h.orig +++ include/VariantUtils.h @@ -8,6 +8,7 @@ #define VARIANTUTILS_H #include +#include #include "Lucene.h" #include "MiscUtils.h" @@ -22,7 +23,11 @@ class LPPAPI VariantUtils { (public) 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