forked from boostorg/beast
Don't use boost::string_ref
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
Version 147:
|
||||||
|
|
||||||
|
* Don't use boost::string_ref
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Version 146:
|
Version 146:
|
||||||
|
|
||||||
* Fix some typos
|
* Fix some typos
|
||||||
|
@@ -12,34 +12,12 @@
|
|||||||
|
|
||||||
#include <boost/beast/core/detail/config.hpp>
|
#include <boost/beast/core/detail/config.hpp>
|
||||||
#include <boost/version.hpp>
|
#include <boost/version.hpp>
|
||||||
#ifndef BOOST_BEAST_NO_BOOST_STRING_VIEW
|
|
||||||
# if BOOST_VERSION >= 106400
|
|
||||||
# define BOOST_BEAST_NO_BOOST_STRING_VIEW 0
|
|
||||||
# else
|
|
||||||
# define BOOST_BEAST_NO_BOOST_STRING_VIEW 1
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if BOOST_BEAST_NO_BOOST_STRING_VIEW
|
|
||||||
#include <boost/utility/string_ref.hpp>
|
|
||||||
#else
|
|
||||||
#include <boost/utility/string_view.hpp>
|
#include <boost/utility/string_view.hpp>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace beast {
|
namespace beast {
|
||||||
|
|
||||||
#if BOOST_BEAST_NO_BOOST_STRING_VIEW
|
|
||||||
/// The type of string view used by the library
|
|
||||||
using string_view = boost::string_ref;
|
|
||||||
|
|
||||||
/// The type of basic string view used by the library
|
|
||||||
template<class CharT, class Traits>
|
|
||||||
using basic_string_view =
|
|
||||||
boost::basic_string_ref<CharT, Traits>;
|
|
||||||
#else
|
|
||||||
/// The type of string view used by the library
|
/// The type of string view used by the library
|
||||||
using string_view = boost::string_view;
|
using string_view = boost::string_view;
|
||||||
|
|
||||||
@@ -47,7 +25,6 @@ using string_view = boost::string_view;
|
|||||||
template<class CharT, class Traits>
|
template<class CharT, class Traits>
|
||||||
using basic_string_view =
|
using basic_string_view =
|
||||||
boost::basic_string_view<CharT, Traits>;
|
boost::basic_string_view<CharT, Traits>;
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user