commit | 5f482196cacf7ce0123cc3256dfde2963d842167 | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Thu Mar 28 15:32:37 2019 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Thu Mar 28 15:56:07 2019 +0900 |
tree | 56b2f8df63e73b5502e5343bb03e38147b9b433f | |
parent | 00c099b8763c6891a2cf6679749079fb4d39f036 [diff] |
Disallow operator!() on unique_fd This catches a common mistake where client code checks for errors using the common idiom that works for std::iostream and other file-like classes: unique_fd fd = open(...); if (!fd) { } Test: atest libbase_test Test: m droid Change-Id: I9629a7795537ecb3b57be9c741c06f80967e4cc2