Add support for c++ member function