We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ad6d25 commit 68cd0fcCopy full SHA for 68cd0fc
1 file changed
absl/strings/charconv.h
@@ -48,9 +48,14 @@ struct from_chars_result {
48
const char* absl_nonnull ptr;
49
std::errc ec;
50
51
- bool operator==(const from_chars_result&) = default;
+ constexpr friend bool operator==(const from_chars_result& l,
52
+ const from_chars_result& r) noexcept {
53
+ return l.ptr == r.ptr && l.ec == r.ec;
54
+ }
55
- constexpr explicit operator bool() const noexcept { return ec == std::errc{}; }
56
+ constexpr explicit operator bool() const noexcept {
57
+ return ec == std::errc{};
58
59
};
60
61
// Workalike compatibility version of std::from_chars from C++17. Currently
0 commit comments