🚨 fix warning

This commit is contained in:
Niels Lohmann
2024-11-08 23:41:46 +01:00
parent 078d25ed68
commit ad552c41be
6 changed files with 22 additions and 14 deletions
+1 -1
View File
@@ -353,7 +353,7 @@ class json_sax_dom_callback_parser
using parse_event_t = typename BasicJsonType::parse_event_t;
json_sax_dom_callback_parser(BasicJsonType& r,
const parser_callback_t cb,
const parser_callback_t& cb,
const bool allow_exceptions_ = true)
: root(r), callback(cb), allow_exceptions(allow_exceptions_)
{
+1 -1
View File
@@ -69,7 +69,7 @@ class parser
public:
/// a parser reading from an input adapter
explicit parser(InputAdapterType&& adapter,
const parser_callback_t<BasicJsonType> cb = nullptr,
const parser_callback_t<BasicJsonType>& cb = nullptr,
const bool allow_exceptions_ = true,
const bool skip_comments = false)
: callback(cb)