I was disappointed they didn't do a test case with std::error_code.
EDIT: Is there something wrong with std::error_code? I don't care about my points, but I'm worried I might have missed something I should know.
EDIT: Is there something wrong with std::error_code? I don't care about my points, but I'm worried I might have missed something I should know.
So for cross-platform APIs that exist on both you'll generally use std::generic_category as the API is usually defined to modify errno in the case of an error. For Windows-only APIs use std::system_category.