mirror of
https://github.com/nlohmann/json.git
synced 2026-02-25 04:46:26 +00:00
🔨 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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user