From c8e523e5b89bee50099cbe3f7487ce4cab3ce13d Mon Sep 17 00:00:00 2001 From: Rinzii Date: Thu, 4 Apr 2024 20:31:35 -0400 Subject: [PATCH] Remove static assert with default ctz --- include/ccmath/internal/support/ctz.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/ccmath/internal/support/ctz.hpp b/include/ccmath/internal/support/ctz.hpp index 67445e01..ccfdbd36 100644 --- a/include/ccmath/internal/support/ctz.hpp +++ b/include/ccmath/internal/support/ctz.hpp @@ -42,11 +42,7 @@ namespace ccm::support } // namespace internal template - constexpr int ctz(T /* x */) noexcept - { - static_assert(false, "Unsupported type for ctz"); // Prevent unsupported types from compiling, but give useful error. - return -1; - } + constexpr int ctz(T /* x */) noexcept; template <> constexpr int ctz(unsigned short x) noexcept