mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +08:00
fix: enable to deduce what basic_value to be used
This commit is contained in:
@@ -84,8 +84,8 @@ struct json_serializer
|
|||||||
{
|
{
|
||||||
if(!is_first) {std::cout << ", ";}
|
if(!is_first) {std::cout << ", ";}
|
||||||
is_first = false;
|
is_first = false;
|
||||||
std::cout << toml::format(toml::string(elem.first),
|
std::cout << toml::format(toml::value(elem.first),
|
||||||
std::numeric_limits<std::size_t>::max());
|
std::numeric_limits<std::size_t>::max());
|
||||||
std::cout << ':';
|
std::cout << ':';
|
||||||
toml::visit(*this, elem.second);
|
toml::visit(*this, elem.second);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user