C++ Logo

std-discussion

Advanced search

Re: Making std::bitset constexpr

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Thu, 20 Jun 2019 20:32:14 +0300
On Thu, 20 Jun 2019 at 20:27, Henrik Sjöström via Std-Discussion
<std-discussion_at_[hidden]> wrote:
>
> Is there a reason for most members of std::bitset not to be constexpr? For example bitset.none(), all(), any(),count().

Probably nothing more than constexpr being an incremental pill to
swallow, considering intrinsics and all that.

See also http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1251r1.pdf

Received on 2019-06-20 12:34:16