[algs] Remove pair copy constructor

Use default.
This commit is contained in:
Behdad Esfahbod 2019-05-15 19:03:59 -07:00
parent f92d188d77
commit 243a5a6af2
2 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,6 @@ struct hb_pair_t
typedef hb_pair_t<T1, T2> pair_t;
hb_pair_t (T1 a, T2 b) : first (a), second (b) {}
hb_pair_t (const pair_t& o) : first (o.first), second (o.second) {}
template <typename Q1, typename Q2,
hb_enable_if (hb_is_convertible (T1, Q1) &&

View File

@ -75,6 +75,7 @@ main (int argc, char **argv)
hb_pair_t<const int*, int> xp = hb_pair_t<int *, long> (nullptr, 0);
xp = hb_pair_t<int *, double> (nullptr, 1);
xp = hb_pair_t<const int*, int> (nullptr, 1);
return 0;
}