mirror of
https://github.com/nlohmann/json.git
synced 2026-03-06 09:16:25 +00:00
Merge pull request #1950 from FrancoisChabot/issues/1457
templated input adapters
This commit is contained in:
@@ -40,7 +40,8 @@ namespace
|
||||
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(s)).scan();
|
||||
auto ia = nlohmann::detail::input_adapter(s);
|
||||
return nlohmann::detail::lexer<json, decltype(ia)>(std::move(ia)).scan();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user