V3 PATCH: numeric_limits<> support, fix PR/3865
Gabriel Dos Reis
gdr@integrable-solutions.net
Sun Sep 1 15:02:00 GMT 2002
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
More information about the Gcc-patches
mailing list