mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-16 16:28:09 +08:00
Merge branch 'origin/output-operator' into v4_1_0
This commit is contained in:
@@ -1201,6 +1201,13 @@ std::string format(const std::vector<typename basic_value<TC>::key_type>& ks,
|
||||
return ser(ks, v);
|
||||
}
|
||||
|
||||
template<typename TC>
|
||||
std::ostream& operator<<(std::ostream& os, const basic_value<TC>& v)
|
||||
{
|
||||
os << format(v);
|
||||
return os;
|
||||
}
|
||||
|
||||
} // toml
|
||||
|
||||
#if defined(TOML11_COMPILE_SOURCES)
|
||||
|
@@ -86,13 +86,6 @@ void toml11_test_parse_failure(F fn, std::string in, toml::detail::context<TC> c
|
||||
|
||||
namespace toml
|
||||
{
|
||||
template<typename TC>
|
||||
std::ostream& operator<<(std::ostream& os, const toml::basic_value<TC>& v)
|
||||
{
|
||||
os << toml::format(v);
|
||||
return os;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const integer_format_info&);
|
||||
std::ostream& operator<<(std::ostream& os, const floating_format_info&);
|
||||
std::ostream& operator<<(std::ostream& os, const string_format_info&);
|
||||
|
Reference in New Issue
Block a user