summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/PythonUtil.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2021-12-29 10:45:43 +0100
committerJose <jose@zeroc.com>2021-12-29 12:09:29 +0100
commit72dcb8749be9494563e035087d7a11c58d7458e1 (patch)
treeadb351d6ca284a0e9210d102cd2ed8b063ac6137 /cpp/src/Slice/PythonUtil.cpp
parentFixes for C++98 mapping build with C++17 mode or greater (diff)
downloadice-72dcb8749be9494563e035087d7a11c58d7458e1.tar.bz2
ice-72dcb8749be9494563e035087d7a11c58d7458e1.tar.xz
ice-72dcb8749be9494563e035087d7a11c58d7458e1.zip
Don't use auto with lambda methods
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r--cpp/src/Slice/PythonUtil.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp
index 5826c4d5871..ad40a0e34c7 100644
--- a/cpp/src/Slice/PythonUtil.cpp
+++ b/cpp/src/Slice/PythonUtil.cpp
@@ -950,7 +950,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(); });
+ transform(allBases.begin(), allBases.end(), back_inserter(ids),
+ [](const ContainedPtr& it)
+ {
+ return it->scoped();
+ });
#else
transform(allBases.begin(), allBases.end(), back_inserter(ids), IceUtil::constMemFun(&Contained::scoped));
#endif