7 Jul
2026
7 Jul
'26
2:15 p.m.
Steve Gerbino wrote:
I don't think I'm alone in this opinion. There is actually a paper P1028 that describes this idea. I also believe Boost's error_code provides a query to determine if the code actually indicates a failure, which further validates the line of thought.
It does. I also proposed that for std::error_code, http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p1198r0.html but it wasn't accepted as it would have been an ABI break. Windows COM HRESULT codes and HTTP status codes allow nonzero alternate success.