[Bug libstdc++/94545] std::to_integer<int>(std::numeric_limits<std::byte>::max()) returns 0
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 10 08:16:04 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94545
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is because numeric_limits<byte>::max() is byte() because it isn't an
arithmetic type, so numeric_limits isn't meaningful.
More information about the Gcc-bugs
mailing list