how to return multiple error codes from C++ function
<p>What is a good way to return success or one or more error codes from a C++ function?</p>

<p>I have this member function called save(), which saves to each of the member variables, there are at least ten of these member variables that are saved-to, for the call to save(), I want to find out if the call failed, and if so, on which member variable (some are hard failures, some are soft).</p>
