C++ example, retry