Don&#x27;t even need anything that drastic. Just switch the compiler to C++ mode and start using std::unique_ptr instead of malloc&#x2F;free. Remember to turn off exceptions and RTTI to keep the spirit of C alive in your C++ code!