Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stormbrew/e877b39aa060f19f16dc to your computer and use it in GitHub Desktop.
Save stormbrew/e877b39aa060f19f16dc to your computer and use it in GitHub Desktop.
#include <system_error>
int main() {
std::error_code x = std::make_error_code(std::errc::no_such_file_or_directory);
printf("%d\n", x != std::errc::no_such_file_or_directory); // Should print 0, does on libstdc++6 < 5. Prints 1 on libstdc++6-5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment