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          [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to