summaryrefslogtreecommitdiff
path: root/absl/types
diff options
context:
space:
mode:
authorGravatar Rose <83477269+AtariDreams@users.noreply.github.com>2023-02-16 12:20:06 -0500
committerGravatar Rose <83477269+AtariDreams@users.noreply.github.com>2023-02-17 10:22:46 -0500
commitab92654a37348637c134c8d24264b8cbf56d9ff8 (patch)
tree73616d1fede17d23c3c7840f55add399f48ab369 /absl/types
parented37a45a374dce32f78ca65d873902364963dfc2 (diff)
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.h2
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)