diff options
Diffstat (limited to 'cpp/src/slice2html/Gen.cpp')
-rw-r--r-- | cpp/src/slice2html/Gen.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/src/slice2html/Gen.cpp b/cpp/src/slice2html/Gen.cpp index c35988b0fe5..28857125301 100644 --- a/cpp/src/slice2html/Gen.cpp +++ b/cpp/src/slice2html/Gen.cpp @@ -2161,10 +2161,23 @@ Slice::ModuleGenerator::visitContainer(const ContainerPtr& p) ClassList classesAndInterfaces = p->classes(); ClassList classes; ClassList interfaces; +#ifdef ICE_CPP11_COMPILER + remove_copy_if(classesAndInterfaces.begin(), classesAndInterfaces.end(), back_inserter(classes), + [](const ClassDefPtr& classDef) + { + return !classDef->isInterface(); + }); + remove_copy_if(classesAndInterfaces.begin(), classesAndInterfaces.end(), back_inserter(interfaces), + [](const ClassDefPtr& classDef) + { + return !classDef->isInterface(); + }); +#else remove_copy_if(classesAndInterfaces.begin(), classesAndInterfaces.end(), back_inserter(classes), ::IceUtil::constMemFun(&ClassDef::isInterface)); remove_copy_if(classesAndInterfaces.begin(), classesAndInterfaces.end(), back_inserter(interfaces), not1(::IceUtil::constMemFun(&ClassDef::isInterface))); +#endif if(!classes.empty()) { |