relaxing C++ errors