♻️ adjusting lexer/parser in symmetry to #1006

This commit is contained in:
Niels Lohmann 2018-03-12 19:15:11 +01:00
parent b56ac86471
commit 8557151d90
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
5 changed files with 34 additions and 12 deletions

View file

@ -32,6 +32,7 @@ class parser
using number_integer_t = typename BasicJsonType::number_integer_t;
using number_unsigned_t = typename BasicJsonType::number_unsigned_t;
using number_float_t = typename BasicJsonType::number_float_t;
using string_t = typename BasicJsonType::string_t;
using lexer_t = lexer<BasicJsonType>;
using token_type = typename lexer_t::token_type;
@ -175,7 +176,7 @@ class parser
}
// parse values
std::string key;
string_t key;
BasicJsonType value;
while (true)
{