From 9cfac093aa5816113289812764c44ec0c44c04c4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 9 Jun 2021 11:41:59 -0600 Subject: [PATCH] [set] Add copy constructor/assignment --- src/hb-set.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hb-set.hh b/src/hb-set.hh index c2fd15450..8d0926705 100644 --- a/src/hb-set.hh +++ b/src/hb-set.hh @@ -40,10 +40,13 @@ struct hb_set_t { - HB_DELETE_COPY_ASSIGN (hb_set_t); hb_set_t () { init (); } ~hb_set_t () { fini (); } + hb_set_t (const hb_set_t& other) : hb_set_t () { set (&other); } + void operator= (const hb_set_t& other) { set (&other); } + // TODO Add move construtor/assign + struct page_map_t { int cmp (const page_map_t &o) const { return (int) o.major - (int) major; }