forked from boostorg/beast
Fix compilation on MSVC with std::string_view
close #1573 std::string_view::iterator is not necessarily a raw pointer. Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
committed by
Vinnie Falco
parent
8703038e37
commit
b7a8fb5178
@@ -3,6 +3,7 @@ Version 251:
|
|||||||
* Clean up CI scripts
|
* Clean up CI scripts
|
||||||
* detect_ssl uses bool
|
* detect_ssl uses bool
|
||||||
* launder pointers
|
* launder pointers
|
||||||
|
* Fix compilation on MSVC with std::string_view
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@@ -56,14 +56,6 @@ BOOST_BEAST_DECL
|
|||||||
std::int8_t
|
std::int8_t
|
||||||
unhex(char c);
|
unhex(char c);
|
||||||
|
|
||||||
BOOST_BEAST_DECL
|
|
||||||
void
|
|
||||||
skip_ows(char const*& it, char const* end);
|
|
||||||
|
|
||||||
BOOST_BEAST_DECL
|
|
||||||
void
|
|
||||||
skip_token(char const*& it, char const* last);
|
|
||||||
|
|
||||||
BOOST_BEAST_DECL
|
BOOST_BEAST_DECL
|
||||||
string_view
|
string_view
|
||||||
trim(string_view s);
|
trim(string_view s);
|
||||||
|
@@ -219,8 +219,9 @@ unhex(char c)
|
|||||||
return tab[static_cast<unsigned char>(c)];
|
return tab[static_cast<unsigned char>(c)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <class ForwardIt>
|
||||||
void
|
void
|
||||||
skip_ows(char const*& it, char const* end)
|
skip_ows(ForwardIt& it, ForwardIt end)
|
||||||
{
|
{
|
||||||
while(it != end)
|
while(it != end)
|
||||||
{
|
{
|
||||||
@@ -230,8 +231,9 @@ skip_ows(char const*& it, char const* end)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <class ForwardIt>
|
||||||
void
|
void
|
||||||
skip_token(char const*& it, char const* last)
|
skip_token(ForwardIt& it, ForwardIt last)
|
||||||
{
|
{
|
||||||
while(it != last && is_token_char(*it))
|
while(it != last && is_token_char(*it))
|
||||||
++it;
|
++it;
|
||||||
|
Reference in New Issue
Block a user