Boost logo

Boost :

Subject: Re: [boost] Fwd: review request: addition to type_traits library of is_less_comparable<T> and others
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-08-31 13:02:49


AMDG

Frédéric Bron wrote:
> Anybody wanting to review this very short addition to type_traits?
>
> I can add that one important question of the review is: should we
> report that T is less comparable if T<T returns void?
> Currently it returns true but the implementation generates warnings in
> g++. However, I imagine that if someone wants to know if T<T works, it
> is to get the result (this is my use of it).
>

To be strictly correct, it should only return true if the
result is convertible to bool.

In Christ,
Steven Watanabe


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