From 0759f3afee5b02d1f43b54f90111086cdc78338e Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Tue, 18 Dec 2018 12:15:22 -0800 Subject: Allow PosixErrorOr to be implicitly constructible from copyable T. PiperOrigin-RevId: 226037787 Change-Id: I5fb5f55f68b67dd86bbff46349b46e3e8e6b9d1b --- test/util/posix_error.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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 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; -- cgit v1.2.3