Gennaro Prota <[EMAIL PROTECTED]> writes:

<snip>

> Still the second line would be an improvement where a standard
> <limits> is available. But I guess I could replace it with
>
>    enum { bits_per_block = some_namespace::precision<Block>::value };
>
> which is completely portable. That was just to show you a possible
> use, of course, but as I said I need it all the times. Frankly, it
> seems to me that those little templates are much cleaner and
> understandable of the alternatives (also, let me say that if I were to
> create something from scratch for standard C++ I would go for separate
> traits, instead of an all-in-one solution like numeric_limits). But
> it's also obvious that mine was just a proposal, and I don't expect
> everyone to agree with me :-)

I basically agree with everything you've said, especially about the
separate traits (metafunctions)!  I was just pointing out some overlap
with existing libraries.

-Dave

-- 
                       David Abrahams
   [EMAIL PROTECTED] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to