do SafeRecurse function local for C++ compiler