C++ Logo


Advanced search

Subject: Re: Making std::bitset constexpr
From: Ville Voutilainen (ville.voutilainen_at_[hidden])
Date: 2019-06-20 12:32:14

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

STD-DISCUSSION list run by std-discussion-owner@lists.isocpp.org

Older Archives on Google Groups