diff --git a/library/include/ck/library/utility/check_err.hpp b/library/include/ck/library/utility/check_err.hpp index de09ed873d..aaab32b8ad 100644 --- a/library/include/ck/library/utility/check_err.hpp +++ b/library/include/ck/library/utility/check_err.hpp @@ -149,10 +149,11 @@ check_err(const std::vector& out, return res; } -template -typename std::enable_if::value && !std::is_same::value, bool>::type +template +std::enable_if_t<((std::is_signed_v && std::is_integral_v) || std::is_same_v) && + (std::is_signed_v && std::is_integral_v) && (sizeof(T) <= sizeof(U)) && !std::is_same_v, bool> check_err(const std::vector& out, - const std::vector& ref, + const std::vector& ref, const std::string& msg = "Error: Incorrect results!", double = 0, double atol = 0)