summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2018-12-18 12:15:22 -0800
committerShentubot <shentubot@google.com>2018-12-18 12:16:25 -0800
commit0759f3afee5b02d1f43b54f90111086cdc78338e (patch)
tree2d8663ff9c73701c9b8bf4a19d3e353c00e31c15 /test
parent3b3f02627870a06de4e1fc3178d5bd23f627a97a (diff)
Allow PosixErrorOr<T> to be implicitly constructible from copyable T.
PiperOrigin-RevId: 226037787 Change-Id: I5fb5f55f68b67dd86bbff46349b46e3e8e6b9d1b
Diffstat (limited to 'test')
-rw-r--r--test/util/posix_error.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/util/posix_error.h b/test/util/posix_error.h
index 2dc5504fd..7fafe01b5 100644
--- a/test/util/posix_error.h
+++ b/test/util/posix_error.h
@@ -74,9 +74,9 @@ class ABSL_MUST_USE_RESULT PosixError {
template <typename T>
class ABSL_MUST_USE_RESULT PosixErrorOr {
public:
- PosixErrorOr(const PosixError& error); // NOLINT
- explicit PosixErrorOr(const T& value);
- PosixErrorOr(T&& value); // NOLINT
+ PosixErrorOr(const PosixError& error);
+ PosixErrorOr(const T& value);
+ PosixErrorOr(T&& value);
PosixErrorOr(PosixErrorOr&& other) = default;
PosixErrorOr& operator=(PosixErrorOr&& other) = default;