Skip to content

Commit 35b061c

Browse files
committed
Avoid modern C++ in the typemaplib test
1 parent dd9d546 commit 35b061c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/typemaplib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ TestType::TestType()
1010
EXPORTAPI StoredType& get_stored_type_hash(std::type_index idx)
1111
{
1212
static std::unordered_map<std::type_index, StoredType> m_map;
13-
if(!m_map.contains(idx))
13+
if(m_map.count(idx) == 0)
1414
{
1515
m_map[idx] = StoredType();
1616
}

0 commit comments

Comments
 (0)