mirror of
https://github.com/matrix-construct/construct
synced 2024-06-01 17:48:56 +02:00
ircd::json: Minor cleanup.
This commit is contained in:
parent
0c1e2be81a
commit
875b8a01f1
10
ircd/json.cc
10
ircd/json.cc
|
@ -44,7 +44,10 @@ ircd::json::parser
|
|||
:qi::grammar<const char *, unused_type>
|
||||
{
|
||||
using it = const char *;
|
||||
template<class T = unused_type, class... A> using rule = qi::rule<it, T, A...>;
|
||||
|
||||
template<class T = unused_type,
|
||||
class... A>
|
||||
using rule = qi::rule<it, T, A...>;
|
||||
|
||||
const rule<> NUL { lit('\0') ,"nul" };
|
||||
|
||||
|
@ -230,7 +233,10 @@ ircd::json::printer
|
|||
:karma::grammar<char *, unused_type>
|
||||
{
|
||||
using it = char *;
|
||||
template<class T = unused_type, class... A> using rule = karma::rule<it, T, A...>;
|
||||
|
||||
template<class T = unused_type,
|
||||
class... A>
|
||||
using rule = karma::rule<it, T, A...>;
|
||||
|
||||
const rule<> NUL { lit('\0') ,"nul" };
|
||||
|
||||
|
|
Loading…
Reference in a new issue