diff --git a/include/boost/url/bnf/range.hpp b/include/boost/url/bnf/range.hpp index ea786daf..f1f1eacc 100644 --- a/include/boost/url/bnf/range.hpp +++ b/include/boost/url/bnf/range.hpp @@ -20,6 +20,9 @@ namespace boost { namespace urls { + +struct pct_encoded_str; + namespace bnf { /** Alias for `std::true_type` if T satisfies __Range__ @@ -33,20 +36,24 @@ struct is_range : std::false_type {}; template struct is_range() = + std::declval() = T::begin( std::declval(), std::declval(), std::declval(), - std::declval()), - std::declval() = + std::declval::type>()), + std::declval() = T::increment( std::declval(), std::declval(), std::declval(), - std::declval()) + std::declval::type>()) ) > > : std::true_type { diff --git a/include/boost/url/rfc/paths_bnf.hpp b/include/boost/url/rfc/paths_bnf.hpp index e49f2d77..05e6c1c8 100644 --- a/include/boost/url/rfc/paths_bnf.hpp +++ b/include/boost/url/rfc/paths_bnf.hpp @@ -84,7 +84,8 @@ struct segment_nz_nc_bnf // path-abempty = *( "/" segment ) struct path_abempty_bnf { - using value_type = pct_encoded_str; + using value_type = + pct_encoded_str; parsed_path& v; @@ -93,7 +94,7 @@ struct path_abempty_bnf bool begin( char const*& it, - char const* const end, + char const* end, error_code& ec, pct_encoded_str& t) noexcept; @@ -102,7 +103,7 @@ struct path_abempty_bnf bool increment( char const*& it, - char const* const end, + char const* end, error_code& ec, pct_encoded_str& t) noexcept;