diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TypePrinter.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index 048df4358b..52699b67de 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -522,6 +522,13 @@ inline ::std::ostream &operator<<(::std::ostream &os, const Channel &channel) return os; } +inline std::string to_string(const Channel &channel) +{ + std::stringstream str; + str << channel; + return str.str(); +} + /** Formatted output of the BorderMode type. */ inline ::std::ostream &operator<<(::std::ostream &os, const BorderMode &mode) { |