maybe this argument? http://stackoverflow.com/a/3630174I am trying to define "f > g" for two std::function instances(which means one can define constraints). I tried this, but to no avail:Any ideas?
Just a raw test. SPEEDHmmm: can you specify the measure(s) you want to compare them against (maintainability, compatibility, speed, binary size,...), as well as the scope in which you use it?
Eg: Move saves you from typing 9 extra characters so it's better for those who hate typing.
What about this?I am trying to define "f > g" for two std::function instances(which means one can define constraints). I tried this, but to no avail:Any ideas?
So the goal is to run-time assemble/capture/compose a "callable"What about this?I am trying to define "f > g" for two std::function instances(which means one can define constraints). I tried this, but to no avail:Any ideas?
FunctionType<bool, double> opFun = f > g; // delayedSo the goal is to run-time assemble/capture/compose a "callable"What about this?I am trying to define "f > g" for two std::function instances(which means one can define constraints). I tried this, but to no avail:Any ideas?
bool h(x)
given a g(x) and f(x) such that
h(x) == [f(x) < g(x)]
?