This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/61166] overflow when parse number in std::duration operator""
- From: "emsr at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 14 May 2014 13:29:42 +0000
- Subject: [Bug libstdc++/61166] overflow when parse number in std::duration operator""
- Auto-submitted: auto-generated
- References: <bug-61166-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61166
--- Comment #6 from emsr at gcc dot gnu.org ---
Something like parse_number was in the original doc as an implementation
example. The idea was to select the smallest integral type that could
accommodate the number string with. This is done with _Select_int.
_Select_type picks the most space-efficient duration ratio type using
_Select_int.