adapt to older boost on travis

This commit is contained in:
bert hubert 2018-12-28 19:14:00 +01:00
parent 6790f50612
commit 30b9a78059
1 changed files with 5 additions and 0 deletions

View File

@ -11,9 +11,14 @@
#include <mutex>
#if __cplusplus < 201703L
#if BOOST_VERSION > 105400
#include <boost/utility/string_view.hpp>
using boost::string_view;
#else
#include <boost/utility/string_ref.hpp>
using string_view = boost::string_ref;
#endif
#else // C++17
using std::string_view;
#endif