Skip to content

Commit 829ff81

Browse files
committed
Don't use C++ 20 feature std::map::contains in CPPMethod
Resolves build failures seen on CI
1 parent 7134977 commit 829ff81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bindings/pyroot/cppyy/CPyCppyy/src/CPPMethod.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ CPyCppyy::CPPMethod::CPPMethod(
354354
fArgsRequired(-1)
355355
{
356356
Cppyy::TCppType_t result = Cppyy::ResolveType(Cppyy::GetMethodReturnType(fMethod));
357-
if (TypeReductionMap.contains(result))
357+
if (TypeReductionMap.find(result) != TypeReductionMap.end())
358358
fMethod = Cppyy::ReduceReturnType(fMethod, TypeReductionMap[result]);
359359
if (result && Cppyy::IsLambdaClass(result))
360360
fMethod = Cppyy::AdaptFunctionForLambdaReturn(fMethod);

0 commit comments

Comments
 (0)