aboutsummaryrefslogtreecommitdiff
path: root/utils/TypePrinter.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/TypePrinter.h')
-rw-r--r--utils/TypePrinter.h7
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)
{