aboutsummaryrefslogtreecommitdiff
path: root/tests/TypePrinter.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/TypePrinter.h')
-rw-r--r--tests/TypePrinter.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/TypePrinter.h b/tests/TypePrinter.h
index f276f45db0..2f9909ca2e 100644
--- a/tests/TypePrinter.h
+++ b/tests/TypePrinter.h
@@ -149,6 +149,13 @@ inline ::std::ostream &operator<<(::std::ostream &os, const NonLinearFilterFunct
return os;
}
+inline std::string to_string(const NonLinearFilterFunction &function)
+{
+ std::stringstream str;
+ str << function;
+ return str.str();
+}
+
/** Formatted output of the MatrixPattern type. */
inline ::std::ostream &operator<<(::std::ostream &os, const MatrixPattern &pattern)
{
@@ -173,6 +180,13 @@ inline ::std::ostream &operator<<(::std::ostream &os, const MatrixPattern &patte
return os;
}
+inline std::string to_string(const MatrixPattern &pattern)
+{
+ std::stringstream str;
+ str << pattern;
+ return str.str();
+}
+
/** Formatted output of the InterpolationPolicy type. */
inline ::std::ostream &operator<<(::std::ostream &os, const InterpolationPolicy &policy)
{