summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/PythonUtil.cpp
diff options
context:
space:
mode:
authorJose <pepone@users.noreply.github.com>2021-12-28 21:27:53 +0100
committerGitHub <noreply@github.com>2021-12-28 21:27:53 +0100
commitbc2762ed4c196ff500ad49bb9e5039e826762045 (patch)
tree0703cb36a831353f29bfae8e53608f0f88e1e945 /cpp/src/Slice/PythonUtil.cpp
parentUpdate C++ tests to support building with v143 binary distribution (diff)
downloadice-bc2762ed4c196ff500ad49bb9e5039e826762045.tar.bz2
ice-bc2762ed4c196ff500ad49bb9e5039e826762045.tar.xz
ice-bc2762ed4c196ff500ad49bb9e5039e826762045.zip
Fixes for C++98 mapping build with C++17 mode or greater
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r--cpp/src/Slice/PythonUtil.cpp4
1 files changed, 4 insertions, 0 deletions
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");