Well if they need to replace those integer constants with function calls, clearly that breaks everything.
std::error_code is just a wrapper for several different enums. I should have probably just given the posix one, std::errc.
You can't just make the various enumerations of an enum be function calls.
The right implementation would have been to convert error codes from/to posix, rather than just give native error codes and make looking up the reference value a runtime operation.
std::error_code is just a wrapper for several different enums. I should have probably just given the posix one, std::errc.
You can't just make the various enumerations of an enum be function calls.
The right implementation would have been to convert error codes from/to posix, rather than just give native error codes and make looking up the reference value a runtime operation.