Boost logo

Boost :

Subject: Re: [boost] [Boost.Pool] TR1?
From: Nevin Liber (nevin_at_[hidden])
Date: 2011-04-13 14:10:20


On 13 April 2011 13:01, Anders Dalvander <boost_at_[hidden]> wrote:

> Don't think so, 20.3.3/5 states:
>
> template <class T> struct less : binary_function<T,T,bool> {
> bool operator()(const T& x, const T& y) const;
> };
>
> operator() returns x < y.
>

Which doesn't apply to pointers. Further down in that section:

"For templates greater, less, greater_equal, and less_equal, the
specializations for any
pointer type yield a total order, even if the built-in operators <, >, <=,
>= do not."

-- 
 Nevin ":-)" Liber  <mailto:nevin_at_[hidden]>  (847) 691-1404

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