mirror of
https://github.com/marzer/tomlplusplus.git
synced 2026-01-19 04:52:09 +00:00
let print_to_stream also print the end of a source region (#244)
This commit is contained in:
@@ -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);
|
||||
|
||||
5
toml.hpp
5
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);
|
||||
|
||||
Reference in New Issue
Block a user