From 84422c2c08871c52bc447a33c7691ed021d7737b Mon Sep 17 00:00:00 2001 From: crazyevent Date: Mon, 14 Apr 2025 17:57:18 +0800 Subject: [PATCH] fix compile error under c++14 --- include/channel.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/channel.h b/include/channel.h index ead30bd..0fc25b4 100644 --- a/include/channel.h +++ b/include/channel.h @@ -38,7 +38,7 @@ std::unique_ptr make_unique(Args&& ...args) template struct _is_exception_safe : std::integral_constant::value or + std::is_nothrow_copy_constructible::value || std::is_nothrow_move_constructible::value> {}; @@ -49,7 +49,7 @@ struct _is_exception_safe : template class _channel { -static_assert(N < std::numeric_limits::max(), +static_assert(N < (std::numeric_limits::max)(), "N must be strictly less than the largest possible size_t value"); private: @@ -248,7 +248,7 @@ template class ochannel; template class channel { -static_assert(N < std::numeric_limits::max(), +static_assert(N < (std::numeric_limits::max)(), "N must be strictly less than the largest possible size_t value"); private: