summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uunit.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/uunit.h b/uunit.h
index 447d27a..f11fa1c 100644
--- a/uunit.h
+++ b/uunit.h
@@ -206,8 +206,9 @@ protected:
throw test_result{"", file, line, ss.str()};
}
}
- template<typename T>
- void assert_equal(T expected, T value,
+
+ template<typename T, typename U>
+ void assert_equal(const T& expected, const U& value,
const char* file, std::size_t line)
{
if(expected != value)