Revert operator bool() to its pre-failed value() != 0 meaning

This commit is contained in:
Peter Dimov committed 2019-02-27 21:10:57 +02:00
1 parent 9753cf7668
commit 3164b387a5
3 files changed
+11 -11

No files matched your search

+2 -2
View File
@@ -626,7 +626,7 @@ constexpr explicit operator bool() const noexcept;
[none]
* {blank}
+
Returns: :: `failed()`.
Returns: :: `val_ != 0`.
```
operator std::error_code() const;
@@ -789,7 +789,7 @@ constexpr explicit operator bool() const noexcept;
[none]
* {blank}
+
Returns: :: `failed()`.
Returns: :: `val_ != 0`.
```
operator std::error_condition() const;