Overload resolution for inherited functions
It's simple when you spot it: your operator is not const
-qualified, while the lambda's one is (unless you define the lambda as mutable
). Hence, it is a better match for your non-const instance of Poc
.
Just add the missingconst
:
auto operator() (Ts...) const