On May 27, 12:25 am, alfC
This is simplest still useful solution I found. I realized that returning function
would defeat the purpose since it is not a lambda expression an I would need bind again to insert it in a lambda expression this is the soltution (see code in previous post)
this is the generalization to function objects that take *two*
arguments,
note that there are two template parameters now.
As you see the code is still quite long, I didn't find a way to
simplify it.
(I still didn't manage to use CRTP for example.)
class A{
typedef A self_type;
...
complex operator()(quantityatomic::wavenumber const& k,
quantityatomic::frequency const& w) const{
//function that does the real work ...
}
template