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 33
44include ("cmake/HunterGate.cmake" )
55HunterGate(
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 "
88)
99
1010# 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 () {}
6363
6464namespace {
6565
66- struct NameCompare : std::binary_function < const char *, const char *, bool >
66+ struct NameCompare
6767{
6868 bool
6969 operator () (const char *x, const char *y) const
@@ -88,21 +88,8 @@ class LockedTypeMap: public TypeMap
8888LockedTypeMap &
8989typeMap ()
9090{
91- // c++11 requires thread-safe static variable initialization
92- #if __cplusplus >= 201103L
9391 static LockedTypeMap tMap;
9492 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
10693}
10794
10895
You can’t perform that action at this time.
0 commit comments