Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-08 12:08:40


Gennaro Prota <gennaro_prota_at_[hidden]> 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
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk