Fix C++ example