Assertions for correct definitions of lambda functions
Based on the following concept
https://en.cppreference.com/w/cpp/types/is_invocable (C++-17)
https://www.boost.org/doc/libs/develop/libs/callable_traits/doc/html/callable_traits/reference.html#callable_traits.reference.ref_is_invocable (boost in C++-11)
methods accepting lambda fucntions should check them by static_assert if they have correct definition of parameters.