
8 Oct
2009
8 Oct
'09
9:27 a.m.
alfC wrote:
Does Boost have a generalization of std::plus and std::multiplies (std_function.hpp)?
How about the boost::lambda arithmetic operators, possibly in combination with ll_static_cast<Tp>, and -if necessary- put the result in the functor wrapper boost::function<Tp(const Tp&,const Tp&)>? You probably already know this but in my (non authoritative) opinion, this is as close a generalization as can be.