This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: V3 PATCH: numeric_limits<> support, fix PR/3865
- From: Richard Henderson <rth at redhat dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- 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: Sun, 1 Sep 2002 14:22:23 -0700
- Subject: Re: V3 PATCH: numeric_limits<> support, fix PR/3865
- 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>
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?
r~