From: Andy Little (andy_at_[hidden])
Date: 2004-07-04 03:59:18
"Andy Little" <andy_at_[hidden]> wrote
> "Doug Gregor" <dgregor_at_[hidden]> wrote
> > If we had "smarter" versions of std::plus, std::minus, etc. that played
> > well with result_of, I think that would solve the issue reasonably
> > well.
> This is the remaining problem. If there are to be these plus, minus
> functors where are they to reside or will they be the old favourites?
FWIW I'd go for something like this:
result_of<operator_plus(int,int)>::type z = operator_plus()(x,y);
result_of<operator_minus(int,int)>::type z = operator_minus()(x,y);
result_of<operator_multiplies(int,int)>::type z =
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk