Код: Выделить всё
Assertion failed: endptr == token_buffer.data() + token_buffer.size(), file include/nlohmann/detail/input/lexer.hpp, line 1292Код: Выделить всё
int main(int argc, char *argv[]) {
typedef nlohmann::json json;
std::wstring result = L"{\"field\":-90.3575223}";
json _json = json::parse(result);
float field = _json["field"];
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79855886/nlohmann-assertion-failed-endptr-token-buffer-data-token-buffer-size[/url]
Мобильная версия