diff --git a/include/libconcur/concurrent.h b/include/libconcur/concurrent.h index aaea18a..440d664 100644 --- a/include/libconcur/concurrent.h +++ b/include/libconcur/concurrent.h @@ -457,14 +457,14 @@ struct prod_cons : producer , traits>::header { index_t const circ_size; - constexpr header(index_t cs) noexcept + header(index_t cs) noexcept : circ_size(cs) {} template - constexpr header(::LIBIMP::span> const &elems) noexcept + header(::LIBIMP::span> const &elems) noexcept : circ_size(static_cast(elems.size())) {} - constexpr bool valid() const noexcept { + bool valid() const noexcept { // circ_size must be a power of two. return (circ_size > 1) && ((circ_size & (circ_size - 1)) == 0); }