C++ compatibility