diff options
author | Jose <pepone@users.noreply.github.com> | 2021-12-28 21:27:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-28 21:27:53 +0100 |
commit | bc2762ed4c196ff500ad49bb9e5039e826762045 (patch) | |
tree | 0703cb36a831353f29bfae8e53608f0f88e1e945 /cpp/src/Slice/PythonUtil.cpp | |
parent | Update C++ tests to support building with v143 binary distribution (diff) | |
download | ice-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.cpp | 4 |
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"); |