From bc2762ed4c196ff500ad49bb9e5039e826762045 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 28 Dec 2021 21:27:53 +0100 Subject: Fixes for C++98 mapping build with C++17 mode or greater --- cpp/src/Slice/PythonUtil.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpp/src/Slice/PythonUtil.cpp') diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp index 73753088677..5826c4d5871 100644 --- a/cpp/src/Slice/PythonUtil.cpp +++ b/cpp/src/Slice/PythonUtil.cpp @@ -949,7 +949,11 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p) // ClassList allBases = p->allBases(); StringList ids; +#ifdef ICE_CPP11_COMPILER + transform(allBases.begin(), allBases.end(), back_inserter(ids), [](const auto& it) { return it->scoped(); }); +#else transform(allBases.begin(), allBases.end(), back_inserter(ids), IceUtil::constMemFun(&Contained::scoped)); +#endif StringList other; other.push_back(scoped); other.push_back("::Ice::Object"); -- cgit v1.2.3