blob: ed778de2df669d70efdb0390d0ca40f16bbe9b12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
From d4005a1970a82222198d0a106ee54a71707d059b Mon Sep 17 00:00:00 2001
From: Andreas Scherer <andreas_github@freenet.de>
Date: Sun, 17 Jul 2022 19:46:50 +0200
Subject: [PATCH 1/2] Fix harfbuzz 4.4.1 for older g++.
---
libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh b/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh
index 86d045208..c79d15506 100644
--- a/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh
+++ b/libs/harfbuzz/harfbuzz-src/src/hb-cplusplus.hh
@@ -166,26 +166,29 @@ HB_DEFINE_VTABLE (unicode_funcs);
} // namespace hb
+namespace std {
+
template<typename T>
-struct std::hash<hb::shared_ptr<T>>
+struct hash<hb::shared_ptr<T>>
{
- std::size_t operator()(const hb::shared_ptr<T>& v) const noexcept
+ size_t operator()(const hb::shared_ptr<T>& v) const noexcept
{
- std::size_t h = std::hash<decltype (v.get ())>{}(v.get ());
+ size_t h = hash<decltype (v.get ())>{}(v.get ());
return h;
}
};
template<typename T>
-struct std::hash<hb::unique_ptr<T>>
+struct hash<hb::unique_ptr<T>>
{
- std::size_t operator()(const hb::unique_ptr<T>& v) const noexcept
+ size_t operator()(const hb::unique_ptr<T>& v) const noexcept
{
- std::size_t h = std::hash<decltype (v.get ())>{}(v.get ());
+ size_t h = hash<decltype (v.get ())>{}(v.get ());
return h;
}
};
+} // namespace std
#endif /* __cplusplus */
--
2.37.1
|