C++ stub