From bd9fbe25f64ce4a45a09e37142e6e2f55af206fb Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Thu, 11 Dec 2014 23:48:11 +0000 Subject: [PATCH] Fixed toString for Approx restored to a specialisation instead of an overload --- include/internal/catch_approx.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/internal/catch_approx.hpp b/include/internal/catch_approx.hpp index 8b075515..f5dba61a 100644 --- a/include/internal/catch_approx.hpp +++ b/include/internal/catch_approx.hpp @@ -81,7 +81,8 @@ namespace Detail { }; } -inline std::string toString( Detail::Approx const& value ) { +template<> +inline std::string toString( Detail::Approx const& value ) { return value.toString(); }