diff options
Diffstat (limited to 'tests/TypePrinter.h')
-rw-r--r-- | tests/TypePrinter.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/TypePrinter.h b/tests/TypePrinter.h index 49e717a48a..394ee9d87c 100644 --- a/tests/TypePrinter.h +++ b/tests/TypePrinter.h @@ -121,6 +121,13 @@ inline ::std::ostream &operator<<(::std::ostream &os, const BorderMode &mode) return os; } +inline std::string to_string(const BorderMode &mode) +{ + std::stringstream str; + str << mode; + return str.str(); +} + /** Formatted output of the NonLinearFilterFunction type. */ inline ::std::ostream &operator<<(::std::ostream &os, const NonLinearFilterFunction &function) { @@ -187,6 +194,13 @@ inline ::std::ostream &operator<<(::std::ostream &os, const InterpolationPolicy return os; } +inline std::string to_string(const InterpolationPolicy &policy) +{ + std::stringstream str; + str << policy; + return str.str(); +} + /** Formatted output of the ConversionPolicy type. */ inline ::std::ostream &operator<<(::std::ostream &os, const ConvertPolicy &policy) { |