From 72dcb8749be9494563e035087d7a11c58d7458e1 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 29 Dec 2021 10:45:43 +0100 Subject: Don't use auto with lambda methods --- cpp/src/Slice/PythonUtil.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cpp/src/Slice/PythonUtil.cpp') 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 -- cgit v1.2.3