$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Giovanni Bajo (giovannibajo_at_[hidden])
Date: 2002-07-29 03:38:12
----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, July 25, 2002 3:43 PM
Subject: Re: [boost] Small utility templates
> 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.
Giovanni Bajo