]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Simplify numeric_limits<__max_size_type>
authorJonathan Wakely <jwakely@redhat.com>
Fri, 16 Jul 2021 12:53:05 +0000 (13:53 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 16 Jul 2021 14:03:03 +0000 (15:03 +0100)
commitbfb0586ebdb696efa9e59cb8da1d977c5880653b
tree5a07e977dd388d3b54b7855c617d4bc506632648
parent95891ca020591196cde50c4cde4cab14783a3c00
libstdc++: Simplify numeric_limits<__max_size_type>

If __int128 is supported then __int_traits<__int128> is guaranteed to be
specialized, so we can remove the preprocessor condition inside the
std::numeric_traits<__detail::__max_size_type> specialization. Simply
using __int_traits<_Sp::__rep> gives the right answer.

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:

* include/bits/max_size_type.h (numeric_limits<__max_size_type>):
Use __int_traits unconditionally.
libstdc++-v3/include/bits/max_size_type.h