GCC 3.3.1, new warnings with <limits>

Marcel Moolenaar marcel at xcllnt.net
Sun Jul 13 11:31:56 PDT 2003

On Sun, Jul 13, 2003 at 08:23:54AM -0500, David Leimbach wrote:
> This is a good policy in general, however, one could easily argue that 
> what
> is trying to be determined with signedness  and such being 
> less-than-compared
> to 0 isn't really a big deal and possibly the only way to implement this
> numeric_limits<T>::digits thing without any type introspection which 
> C++ currently
> lacks.

What about?

	#define issigned(T)	(((T)(0)>(T)(~0)) ? 1 : 0)

 Marcel Moolenaar	  USPA: A-39004		 marcel at xcllnt.net

More information about the freebsd-current mailing list