Hacker News new | past | comments | ask | show | jobs | submit login

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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: