diff options
author | Copybara-Service <copybara-worker@google.com> | 2023-02-21 12:17:12 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-02-21 12:17:12 -0800 |
commit | c3b5022604551a045e383c68071d7be0a807839d (patch) | |
tree | 2f14736c51252d27f7995df6741e00cd934714ec /absl/types | |
parent | e575e989c8117f5f2c6bad75db38c9b1da48e750 (diff) | |
parent | ab92654a37348637c134c8d24264b8cbf56d9ff8 (diff) |
Merge pull request #1394 from AtariDreams:constructors
PiperOrigin-RevId: 511271203
Change-Id: I1ed352e06265b705b62d401a50b4699d01f7f1d7
Diffstat (limited to 'absl/types')
-rw-r--r-- | absl/types/optional.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/types/optional.h b/absl/types/optional.h index 134b2aff..e42ab4d0 100644 --- a/absl/types/optional.h +++ b/absl/types/optional.h @@ -130,7 +130,7 @@ class optional : private optional_internal::optional_data<T>, // Constructs an `optional` holding an empty value, NOT a default constructed // `T`. - constexpr optional() noexcept {} + constexpr optional() noexcept = default; // Constructs an `optional` initialized with `nullopt` to hold an empty value. constexpr optional(nullopt_t) noexcept {} // NOLINT(runtime/explicit) |