Merge branch 'origin/output-operator' into v4_1_0

This commit is contained in:
ToruNiina
2024-07-16 00:31:20 +09:00
2 changed files with 7 additions and 7 deletions

View File

@@ -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)