std::is_error_code_enum
is described as:
If T is an error code enumeration, this template provides the member constant value equal true.
std::errc
is described as:
The scoped enumeration std::errc defines the values of portable error conditions
Surely then, std::is_error_code_enum<std::errc>::value
should be true
? Yet for me, it's false. Is this deliberate?
This matters, because without it, the implicit conversion from std::errc
to std::error_code
does not exist.
Aucun commentaire:
Enregistrer un commentaire