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: