
13 Apr
2011
13 Apr
'11
6:10 p.m.
On 13 April 2011 13:01, Anders Dalvander <boost@dalvander.com> 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@eviloverlord.com> (847) 691-1404