File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change 3
3
4
4
include ("cmake/HunterGate.cmake" )
5
5
HunterGate(
6
- URL "https://github.com/cpp-pm/hunter/archive/v0.23.242 .tar.gz"
7
- SHA1 "503b149d0ebdbc598e498f1669ae828a2136b838 "
6
+ URL "https://github.com/cpp-pm/hunter/archive/v0.23.245 .tar.gz"
7
+ SHA1 "36e7f44ee4b3f8e25683e9d700f05a27ecb0a848 "
8
8
)
9
9
10
10
# We require this to get object library link library support and
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ Attribute::~Attribute () {}
63
63
64
64
namespace {
65
65
66
- struct NameCompare : std::binary_function < const char *, const char *, bool >
66
+ struct NameCompare
67
67
{
68
68
bool
69
69
operator () (const char *x, const char *y) const
@@ -88,21 +88,8 @@ class LockedTypeMap: public TypeMap
88
88
LockedTypeMap &
89
89
typeMap ()
90
90
{
91
- // c++11 requires thread-safe static variable initialization
92
- #if __cplusplus >= 201103L
93
91
static LockedTypeMap tMap;
94
92
return tMap;
95
- #else
96
- static Mutex criticalSection;
97
- Lock lock (criticalSection);
98
-
99
- static LockedTypeMap* typeMap = 0 ;
100
-
101
- if (typeMap == 0 )
102
- typeMap = new LockedTypeMap ();
103
-
104
- return *typeMap;
105
- #endif
106
93
}
107
94
108
95
You can’t perform that action at this time.
0 commit comments