Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove static assert with default ctz
Browse files Browse the repository at this point in the history
Rinzii committed Apr 5, 2024
1 parent ef1f710 commit c8e523e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions include/ccmath/internal/support/ctz.hpp
Original file line number Diff line number Diff line change
@@ -42,11 +42,7 @@ namespace ccm::support
} // namespace internal

template <typename T>
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

0 comments on commit c8e523e

Please sign in to comment.