Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-06-28 13:07:02

"Jeffrey C. Jacobs" <darklord_at_[hidden]> writes:

> A while ago I proposed adding a signed_traits class and then after
> receiving some input decided it better this be a property of some
> existing traits object, ideally "integer_traits" since only integer can
> be signed.
> I tried to contact some people to whom I'd been referred about changing
> integer_traits.hpp but never heard back. Otherwise I have received no
> negative feedback from this proposal.
> The idea is simple, as with the min and max constants associated with
> boost::integer_traits, there would be:
> boost::integer_traits<x>::unsigned_type
> boost::integer_traits<x>::signed_type
> I also proposed a
> boost::integer_traits<x>::type
> But that would be x and so wouldn't be very useful.

Please, no more degenerate traits classes!
We need metafunctions instead:



Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at