Revert "String View: use std::string_view on C++17 (untested)"

This reverts commit 00d87f8fe4.
This commit is contained in:
pentarctagon 2018-04-17 00:26:14 -05:00 committed by Pentarctagon
parent 479d5fd01f
commit fed813ef34

View file

@ -19,20 +19,10 @@ that class. */
#pragma once
#include "global.hpp"
#include <boost/version.hpp>
#include <cstdint>
/** Use the standard library string_view if building with C++17. */
#ifdef HAVE_CXX17
namespace utils {
using string_view = std::string_view;
typedef std::basic_string_view<uint8_t, std::char_traits<uint8_t>> byte_string_view;
}
#elif BOOST_VERSION > 106100
#if BOOST_VERSION > 106100
/* Boost string_view is available, so we can just use it. */
#include <boost/utility/string_view.hpp>