I'm under the impression that I'm supposed to be able to compare system category and generic category errors in the way I'm doing below. Am I missing something? When I do this with gcc, they compare as not equal.
#include <iostream>
#include <system_error>
int main()
{
std::error_code s{ENOSPC, std::system_category()};
auto g = std::errc::no_space_on_device;
std::cout << (g == s) << std::endl;
}