09-24-2015, 09:17 PM
Whats the convention for returning a value and an error code from a function? I've got a function that needs to return whether it succeed, and if it succeeded, what the result was. Should I return a pair, or use a reference parameter to return the value?