Boost logo

Boost :

Subject: Re: [boost] review request: addition to type_traits library of is_less_comparable<T, U> and others
From: David Abrahams (dave_at_[hidden])
Date: 2009-12-07 12:48:39

On Dec 6, 2009, at 9:19 AM, Patrick Horgan wrote:

> Frédéric Bron wrote:
>> I a in favor of implementing type traits to detect comparison and
>> arithmetic operators. What for logical and bitwise operations?
> I have no particular use cases in mind, but my prediction is that if you only do the comparison and arithmetic operators, later someone will be saying, "Why didn't he do that logical and bitwise operators? Now I have to implement them myself!"

I hope if you do this there will be a macro that generates the trait for a given operator, at least in the implementation. Once we have that there should be no reason not to cover all the operators.

David Abrahams
BoostPro Computing

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