fix: enable to deduce what basic_value to be used

This commit is contained in:
ToruNiina
2019-06-20 16:21:01 +09:00
parent 7d087ef2a8
commit 99c10dd6bc

View File

@@ -84,8 +84,8 @@ struct json_serializer
{
if(!is_first) {std::cout << ", ";}
is_first = false;
std::cout << toml::format(toml::string(elem.first),
std::numeric_limits<std::size_t>::max());
std::cout << toml::format(toml::value(elem.first),
std::numeric_limits<std::size_t>::max());
std::cout << ':';
toml::visit(*this, elem.second);
}