diff --git a/ircd/rfc3986.cc b/ircd/rfc3986.cc index 5ff4ac082..b331c4481 100644 --- a/ircd/rfc3986.cc +++ b/ircd/rfc3986.cc @@ -14,13 +14,13 @@ namespace ircd::rfc3986 { using namespace ircd::spirit; - template struct grammar; + struct grammar; } -template struct ircd::rfc3986::grammar -:qi::grammar +:qi::grammar { + using it = const char *; template using rule = qi::rule; const rule<> port @@ -73,7 +73,7 @@ struct ircd::rfc3986::grammar }; /// https://tools.ietf.org/html/rfc3986 Appendix A - const rule<> ip6_addr[10] + const rule<> ip6_addr[9] { { repeat(6)[ip6_piece] >> ip6_ls32 }, { lit("::") >> repeat(5)[ip6_piece] >> ip6_ls32 }, @@ -180,7 +180,7 @@ struct ircd::rfc3986::decoder const ircd::rfc3986::decoder; struct ircd::rfc3986::parser -:grammar +:grammar { string_view operator()(const string_view &url) const; }