From bb3c8dfb53454a262c54e03cc6db5b00fe2e5bbe Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 10 Feb 2020 15:05:35 -0800 Subject: [PATCH] ircd::json: Fix output grammar rule constness for clang. --- ircd/json.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ircd/json.cc b/ircd/json.cc index 1877a89cb..23522d9bc 100644 --- a/ircd/json.cc +++ b/ircd/json.cc @@ -281,30 +281,30 @@ struct ircd::json::output { '\\', "\\\\" }, }; - const karma::symbols escaped + karma::symbols escaped { "escaped" }; - const rule character + rule character { escaped | char_ }; - const rule string + rule string { quote << *(character) << quote ,"string" }; - const rule name + rule name { string ,"name" }; // primary recursive rule - const rule value + rule value { (&object << object) | (&array << array) @@ -314,19 +314,19 @@ struct ircd::json::output ,"value" }; - const rule member + rule member { name << name_sep << value ,"member" }; - const rule object + rule object { object_begin << -(member % value_sep) << object_end ,"object" }; - const rule array + rule array { array_begin << -(value % value_sep) << array_end ,"array"