diff --git a/src/catch2/matchers/catch_matchers_vector.hpp b/src/catch2/matchers/catch_matchers_vector.hpp index e16a350a..5b1d8b98 100644 --- a/src/catch2/matchers/catch_matchers_vector.hpp +++ b/src/catch2/matchers/catch_matchers_vector.hpp @@ -116,17 +116,17 @@ namespace Matchers { } template ::value>> ApproxMatcher& epsilon( T const& newEpsilon ) { - approx.epsilon(newEpsilon); + approx.epsilon(static_cast(newEpsilon)); return *this; } template ::value>> ApproxMatcher& margin( T const& newMargin ) { - approx.margin(newMargin); + approx.margin(static_cast(newMargin)); return *this; } template ::value>> ApproxMatcher& scale( T const& newScale ) { - approx.scale(newScale); + approx.scale(static_cast(newScale)); return *this; }