I have a requirement to pass functors when registering functions (and anything else which accepts a function pointer) using embind. At the moment embind accepts pointers to functions and non-capturing lambdas, but nothing which contains state.
Possibly related to: #1914