diff options
Diffstat (limited to 'cpp/src/slice2cs/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cs/Gen.cpp | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index 71848e82fe9..14024ff60d2 100644 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -394,7 +394,11 @@ Slice::CsVisitor::writeDispatch(const ClassDefPtr& p) ClassList bases = p->bases(); bool hasBaseClass = !bases.empty() && !bases.front()->isInterface(); #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), constMemFun(&Contained::scoped)); #endif @@ -651,7 +655,11 @@ Slice::CsVisitor::writeDispatch(const ClassDefPtr& p) { StringList allOpNames; #ifdef ICE_CPP11_COMPILER - transform(allOps.begin(), allOps.end(), back_inserter(allOpNames), [](const auto& it) { return it->name(); }); + transform(allOps.begin(), allOps.end(), back_inserter(allOpNames), + [](const ContainedPtr& it) + { + return it->name(); + }); #else transform(allOps.begin(), allOps.end(), back_inserter(allOpNames), constMemFun(&Contained::name)); #endif @@ -771,7 +779,11 @@ Slice::CsVisitor::writeMarshaling(const ClassDefPtr& p) ClassList bases = p->bases(); #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), constMemFun(&Contained::scoped)); #endif @@ -4896,7 +4908,11 @@ Slice::Gen::HelperVisitor::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 |