Pass Function to C++ expression

Thanks a lot, it works