🔨 reorganized interfaces for parse/accept functions #623

We now rely on implicit conversions to an input_adapter object in the parse/accept functions.
This commit is contained in:
Niels Lohmann
2017-07-23 18:11:34 +02:00
parent 18e0430bfe
commit 9b1c058810
3 changed files with 94 additions and 233 deletions

View File

@@ -36,7 +36,7 @@ using nlohmann::json;
json::lexer::token_type scan_string(const char* s);
json::lexer::token_type scan_string(const char* s)
{
return json::lexer(nlohmann::detail::input_adapter_factory::create(s)).scan();
return json::lexer(nlohmann::detail::input_adapter(s)).scan();
}
TEST_CASE("lexer class")