mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[algs] Add default-construtor to hb_pair_t
This commit is contained in:
1 parent
e2e305066a
commit
c0f57ccc88
1 file changed
+4
@@ -482,6 +482,10 @@ struct hb_pair_t
|
||||
typedef T2 second_t;
|
||||
typedef hb_pair_t<T1, T2> pair_t;
|
||||
|
||||
template <typename U1 = T1, typename U2 = T2,
|
||||
hb_enable_if (std::is_default_constructible<U1>::value &&
|
||||
std::is_default_constructible<U2>::value)>
|
||||
hb_pair_t () : first (), second () {}
|
||||
hb_pair_t (T1 a, T2 b) : first (a), second (b) {}
|
||||
|
||||
template <typename Q1, typename Q2,
|
||||
|
||||
Reference in new issue
Block a user