This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: V3 PATCH: numeric_limits<> support, fix PR/3865


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]