From 34fa5e290146b14ee6bdb261811d219fd7711574 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 1 Nov 2021 21:25:03 -0600 Subject: [PATCH] [set] More default operators --- src/hb-set.hh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/hb-set.hh b/src/hb-set.hh index 17eb8adf4..a1a09d3c3 100644 --- a/src/hb-set.hh +++ b/src/hb-set.hh @@ -157,14 +157,15 @@ struct hb_sparseset_t struct hb_set_t : hb_sparseset_t { - hb_set_t () : hb_sparseset_t () {} + hb_set_t () = default; + ~hb_set_t () = default; + hb_set_t (hb_set_t& o) = default; + hb_set_t& operator= (const hb_set_t& other) = default; + hb_set_t& operator= (hb_set_t&& other) = default; hb_set_t (std::initializer_list l) : hb_sparseset_t (l) {} - hb_set_t (hb_set_t& o) : hb_sparseset_t (o) {} template hb_set_t (const Iterable &o) : hb_sparseset_t (o) {} - hb_set_t& operator= (const hb_set_t& other) { hb_sparseset_t::operator= (other); return *this; } - hb_set_t& operator= (hb_set_t&& other) { hb_sparseset_t::operator= (hb_move (other)); return *this; } }; static_assert (hb_set_t::INVALID == HB_SET_VALUE_INVALID, "");