We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b97f7ef commit a5b0172Copy full SHA for a5b0172
OpenEXR/IlmImf/ImfAttribute.cpp
@@ -63,7 +63,7 @@ Attribute::~Attribute () {}
63
64
namespace {
65
66
-struct NameCompare: std::binary_function <const char *, const char *, bool>
+struct NameCompare
67
{
68
bool
69
operator () (const char *x, const char *y) const
@@ -88,21 +88,8 @@ class LockedTypeMap: public TypeMap
88
LockedTypeMap &
89
typeMap ()
90
91
- // c++11 requires thread-safe static variable initialization
92
-#if __cplusplus >= 201103L
93
static LockedTypeMap tMap;
94
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
}
107
108
0 commit comments