fix 0.11 compat c++ example