mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Allow PosixErrorOr<T> to be implicitly constructible from copyable T.
PiperOrigin-RevId: 226037787 Change-Id: I5fb5f55f68b67dd86bbff46349b46e3e8e6b9d1b
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user