diff --git a/include/toml++/impl/print_to_stream.inl b/include/toml++/impl/print_to_stream.inl index 57dbf76..8170e09 100644 --- a/include/toml++/impl/print_to_stream.inl +++ b/include/toml++/impl/print_to_stream.inl @@ -419,6 +419,11 @@ TOML_IMPL_NAMESPACE_START void TOML_CALLCONV print_to_stream(std::ostream & stream, const source_region& val) { print_to_stream(stream, val.begin); + if (val.begin != val.end) + { + print_to_stream(stream, " to "sv); + print_to_stream(stream, val.end); + } if (val.path) { print_to_stream(stream, " of '"sv); diff --git a/toml.hpp b/toml.hpp index 15662c1..ea104fd 100644 --- a/toml.hpp +++ b/toml.hpp @@ -10694,6 +10694,11 @@ TOML_IMPL_NAMESPACE_START void TOML_CALLCONV print_to_stream(std::ostream & stream, const source_region& val) { print_to_stream(stream, val.begin); + if (val.begin != val.end) + { + print_to_stream(stream, " to "sv); + print_to_stream(stream, val.end); + } if (val.path) { print_to_stream(stream, " of '"sv);