can register C++ lambda closures with C++ parameters and result