Error handling. Mapping system error codes to generic

时光毁灭记忆、已成空白 提交于 2019-12-06 11:29:37

You're right that, because of the argument, an error_condition(ev,generic_category()) should be returned from default_error_condition and thus the output should be "generic".

Looking at the "history" of the source you linked to, this was a libstdc++ bug until very recently (just three months ago). It was bug 60555.

Jonathan's concluding comment was:

Fixed on all active branches, so will be fixed in the 6.5, 7.4, 8.3 and 9.1 releases.

So, if you were to upgrade your GCC 7.3 to 7.4 (which doesn't exist yet), you'd see the expected behaviour.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!