This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: V3 PATCH: numeric_limits<> support, fix PR/3865
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Neil Booth <neil at daikokuya dot co dot uk>, Graham Stott <graham dot stott at btinternet dot com>, gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: 01 Sep 2002 23:58:05 +0200
- Subject: Re: V3 PATCH: numeric_limits<> support, fix PR/3865
- Organization: Integrable Solutions
- References: <20020829173754.GA6888@daikokuya.co.uk> <m3adn5sfzm.fsf@soliton.integrable-solutions.net> <20020829180944.GA7687@daikokuya.co.uk> <m365xtqyo0.fsf@soliton.integrable-solutions.net> <20020829192800.GA8493@daikokuya.co.uk> <m3k7m9pihv.fsf@soliton.integrable-solutions.net> <20020830094931.GD1063@redhat.com> <m3k7m8fwyc.fsf@soliton.integrable-solutions.net> <20020831015342.GG1501@redhat.com> <m3r8ge809j.fsf@soliton.integrable-solutions.net> <20020901212223.GA8139@redhat.com>
Richard Henderson <rth@redhat.com> writes:
| On Sun, Sep 01, 2002 at 12:36:24PM +0200, Gabriel Dos Reis wrote:
| > That would be an easier path to take weren't there constraints on how
| > the integral static data members of numeric_limits<wchar_t> have to be
| > initialized.
|
| Pardon?
|
| struct S
| {
| static const int foo = wchar_t(-1) < 0 ? -1 : 1;
| };
| int foo() { return S::foo; }
|
| Perhaps you meant some other constraint?
Obvisouly, this is not the case I had in mind.
How do you define numeric_limits<wchar_t>::digits10 ?
-- Gaby