What is a good way to return success or one or more error codes from a C ++ function?
I have this member function called save (), which is saved for each of the member variables. Calling the save () function requires at least ten of these member variables, I want to find out if the call failed, and if so, which member variable (some of them are hard, some are soft).
source
share