From 080945ad1282851b4a5d63f671e515833d1f87cd Mon Sep 17 00:00:00 2001 From: root Date: Mon, 9 Oct 2023 17:18:56 -0400 Subject: [PATCH] because bool is a std::integral --- include/dpp/snowflake.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dpp/snowflake.h b/include/dpp/snowflake.h index 40cbe0e268..f6739a4bc0 100644 --- a/include/dpp/snowflake.h +++ b/include/dpp/snowflake.h @@ -77,7 +77,7 @@ class DPP_EXPORT snowflake final { * @throw dpp::logic_exception on assigning a negative value. The function is noexcept if the type given is unsigned * @param snowflake_val snowflake value as an integer type */ - template >> + template && !std::is_same_v>> constexpr snowflake(T snowflake_val) noexcept(std::is_unsigned_v) : value(static_cast>(snowflake_val)) { /** * we cast to the unsigned version of the type given - this maintains "possible loss of data" warnings for sizeof(T) > sizeof(value)