diff --git a/lmdb-safe.hh b/lmdb-safe.hh index 448e73d..16f5876 100644 --- a/lmdb-safe.hh +++ b/lmdb-safe.hh @@ -11,9 +11,14 @@ #include #if __cplusplus < 201703L +#if BOOST_VERSION > 105400 #include using boost::string_view; #else +#include +using string_view = boost::string_ref; +#endif +#else // C++17 using std::string_view; #endif