diff --git a/include/toml11/serializer.hpp b/include/toml11/serializer.hpp index 43398f8..39661fb 100644 --- a/include/toml11/serializer.hpp +++ b/include/toml11/serializer.hpp @@ -1189,6 +1189,13 @@ std::string format(const std::vector::key_type>& ks, return ser(ks, v); } +template +std::ostream& operator<<(std::ostream& os, const basic_value& v) +{ + os << format(v); + return os; +} + } // toml #if defined(TOML11_COMPILE_SOURCES)