diff options
Diffstat (limited to 'utils/TypePrinter.h')
-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 30592fff55..6e2d7e24f3 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -389,6 +389,13 @@ inline ::std::ostream &operator<<(::std::ostream &os, const Format &format) return os; } +inline std::string to_string(const Format &format) +{ + std::stringstream str; + str << format; + return str.str(); +} + /** Formatted output of the Channel type. */ inline ::std::ostream &operator<<(::std::ostream &os, const Channel &channel) { |