Depends on D125892. There might be efficiency and performance
implications by using a lambda. Thus, I am going to conduct measurements
to see if there is any noticeable impact.
I've been thinking about two more alternatives:
- Make assumeDualImpl a variadic template and (perfect) forward the arguments for the used assume function.
- Use a macros.
I have concerns though, whether these alternatives would deteriorate the
readability of the code.
Although this is a variable referring to a function, it's still a variable.
I find it difficult to read if a variable name is a verb.