From a4aaa4f59ba0c6da284d93c2fca7164565a0e63a Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Wed, 26 Oct 2022 14:19:01 -0700 Subject: [PATCH] Fix the Xenial build The Xenial build was failing due to a missing default constructor in maybe_t. Add it. --- src/maybe.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/maybe.h b/src/maybe.h index 29e15350a..4b7de55cc 100644 --- a/src/maybe.h +++ b/src/maybe.h @@ -85,6 +85,7 @@ struct maybe_impl_not_trivially_copyable_t : public maybe_impl_trivially_copyabl new (storage) T(std::move(v.value())); } } + maybe_impl_not_trivially_copyable_t &operator=(maybe_impl_not_trivially_copyable_t &&v) { if (!v.filled) { reset(); @@ -101,6 +102,7 @@ struct maybe_impl_not_trivially_copyable_t : public maybe_impl_trivially_copyabl new (storage) T(v.value()); } } + maybe_impl_not_trivially_copyable_t &operator=(const maybe_impl_not_trivially_copyable_t &v) { if (&v == this) return *this; if (!v.filled) { @@ -111,6 +113,7 @@ struct maybe_impl_not_trivially_copyable_t : public maybe_impl_trivially_copyabl return *this; } + maybe_impl_not_trivially_copyable_t() = default; ~maybe_impl_not_trivially_copyable_t() { reset(); } };