TheNitesWhoSay / RareCpp

Creating a simpler, more intuitive means of C++ reflection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

String Map Key Bug

TheNitesWhoSay opened this issue · comments

Currently when reading in a std::map (or similar pair containing iterable), if the key type is a std::string (or something that amounts to expecting quotes) it bugs out on well-formed JSON, saying it expects an open quote, this is due to Json::Read::String being called twice, once to remove the quotes (which in cases where key isn't a string, allows for ints & complex keys and such to be parsed), then once again when it sees it's reading to a string type.