Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-07-29 08:38:26


From: "Giovanni Bajo" <giovannibajo_at_[hidden]>
> From: "Peter Dimov" <pdimov_at_[hidden]>
>
> > template<template<class> class Comparator, class R, class T>
> > {insert return type here} element(R T::* pm)
> > {
> > return bind(Comparator<R>(), bind(pm, _1), bind(pm, _1));
> > }
> >
> > where the return type is something incomprehensible (where's typeof when
> we
> > need it?).
>
> Last time, you teached me we can cheat here, returning a function<bool
> (R,R)>. BTW is the double _1 a typo? I thought you need a _2.

Yes, we can cheat, performance notwithstanding. Yes, it's a typo. :-)


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