Quote:
void func(ENUM retCode, std::string name);
What's wrong with
ENUM func(std::string name);
?
If you really need to return a value then return it.
As an alternative you could pass an item by reference (see, for instance
C++ Functions - Pass By Reference[
^])
Another, rather ugly, alternative is changing the value of a global variable.