Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Fixed toString for Approx

restored to a specialisation instead of an overload
Commit
bd9fbe25f64ce4a45a09e37142e6e2f55af206fb
Author
Phil Nash ·
Parents
a99e75b92868

Files · Download .tar.gz

Changes

 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>( Detail::Approx const& value ) {
     return value.toString();
 }