From 8c73c0d300c2ff7ce75a598880ed4964f3478733 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sun, 26 Nov 2017 14:01:49 -0800 Subject: [PATCH] Don't use boost::string_ref --- CHANGELOG.md | 6 ++++++ include/boost/beast/core/string.hpp | 23 ----------------------- 2 files changed, 6 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c59fd08a..41add4ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +Version 147: + +* Don't use boost::string_ref + +-------------------------------------------------------------------------------- + Version 146: * Fix some typos diff --git a/include/boost/beast/core/string.hpp b/include/boost/beast/core/string.hpp index cd8411b6..27bfa571 100644 --- a/include/boost/beast/core/string.hpp +++ b/include/boost/beast/core/string.hpp @@ -12,34 +12,12 @@ #include #include -#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 -#else #include -#endif - #include namespace boost { 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 -using basic_string_view = - boost::basic_string_ref; -#else /// The type of string view used by the library using string_view = boost::string_view; @@ -47,7 +25,6 @@ using string_view = boost::string_view; template using basic_string_view = boost::basic_string_view; -#endif namespace detail {