12 Jan
2018
12 Jan
'18
6:46 p.m.
Andrey Semashev wrote:
It will only be broken if you rely on `error_code( 0, some-category )` to contextually-convert to `false`.
I'm not sure how I can *not* rely on that since I construct `error_code` from enums or ints, all of them having 0 as the "success" value precisely to allow the contextual conversion produce the intended result.
That's exactly what Niall wanted to know, I suppose; would it be possible for you to give specific examples from your code that would be broken?