
"Jeffrey C. Jacobs" <darklord@timehorse.com> 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: unsigned_type<x>::type signed_type<x>::type etc. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com