As is done on branch https://github.com/boostorg/system/tree/feature/scoped-errc. Unfortunately, this will probably break tons of existing code that relies on the implicit conversion to int.