This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] change specific int128 -> generic intN
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Sat, 17 May 2014 11:19:20 +0100
- Subject: Re: [patch] change specific int128 -> generic intN
- Authentication-results: sourceware.org; auth=none
- References: <201404142303 dot s3EN3ONP009938 at greed dot delorie dot com> <201405082334 dot s48NYZni001625 at greed dot delorie dot com> <alpine dot DEB dot 2 dot 10 dot 1405090211170 dot 3709 at laptop-mg dot saclay dot inria dot fr> <201405090221 dot s492LjKD005860 at greed dot delorie dot com> <alpine dot DEB dot 2 dot 10 dot 1405090907070 dot 3684 at laptop-mg dot saclay dot inria dot fr> <201405162051 dot s4GKpxUX027850 at greed dot delorie dot com>
On 16/05/14 16:51 -0400, DJ Delorie wrote:
So I'm still working on macro-izing the C++ headers, and I ran into this error:
.../msp430-elf/large/libstdc++-v3/include/bits/istream.tcc:522:16: error: '__max' is not a member of '__gnu_cxx::__numeric_traits<__int20>'
if (__n == __gnu_cxx::__numeric_traits<streamsize>::__max
^
I can't figure out how to fix this. I added __int20 to
std::numeric_traits, and it returns true for is_integer, so it should
act like all the other integer types, and I can't see anything in
__gnu_cxx::__numeric_traits that has a "list of all types" to add
__int20 to.
Ideas?
The non-standard __numeric_traits uses the non-standard __is_integer
trait (which is available in C++03, unlike std::is_integer). Have you
specialized __is_integer in include/bits/cpp_type_traits.h ?