C++ Logo

std-proposals

Advanced search

Re: std::underlying_value

From: JeanHeyd Meneide <phdofthehouse_at_[hidden]>
Date: Sun, 20 Oct 2019 07:32:25 -0400
On Sun, Oct 20, 2019 at 7:28 AM JeanHeyd Meneide
<phdofthehouse_at_[hidden]> wrote:
>
> Dear Gokhan,
>
> On Sun, Oct 20, 2019 at 6:49 AM Kosher Yosher via Std-Proposals
> <std-proposals_at_[hidden]> wrote:
> >
> > Hi,
> >
> > With C++11 we have std::underlying_type to get the integer type of an enum class. It feels like we should add the complementing std::underlying_value function to get the integer value for an enum class value.
> >
> > I would suggest the following constexpr to get this value:
>
> https://thephd.github.io/vendor/future_cxx/papers/d1379.html
>
> https://github.com/ThePhD/future_cxx/issues/7
>
> I'm on top of it. :D

Except my links: I am not on top of those. _Here_ is the real paper
link: https://thephd.github.io/vendor/future_cxx/papers/d1682.html

D'oh,
ThePhD

Received on 2019-10-20 06:35:21