diff options
author | Rose <83477269+AtariDreams@users.noreply.github.com> | 2023-02-16 12:20:06 -0500 |
---|---|---|
committer | Rose <83477269+AtariDreams@users.noreply.github.com> | 2023-02-17 10:22:46 -0500 |
commit | ab92654a37348637c134c8d24264b8cbf56d9ff8 (patch) | |
tree | 73616d1fede17d23c3c7840f55add399f48ab369 /absl/types | |
parent | ed37a45a374dce32f78ca65d873902364963dfc2 (diff) | |
download | abseil-ab92654a37348637c134c8d24264b8cbf56d9ff8.tar.gz abseil-ab92654a37348637c134c8d24264b8cbf56d9ff8.tar.bz2 abseil-ab92654a37348637c134c8d24264b8cbf56d9ff8.zip |
Convert empty constructors to default ones
These make the changed constructors match closer to the other ones that are default.
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) |