@@ -462,7 +462,7 @@ namespace edm {
462462 iProcessConfiguration);
463463 if (module == nullptr ) {
464464 std::string pathType (" endpath" );
465- if (std::count (iEndPathNames.begin (), iEndPathNames.end (), iPathName) == 0 ) {
465+ if (std::find (iEndPathNames.begin (), iEndPathNames.end (), iPathName) == iEndPathNames. end () ) {
466466 pathType = std::string (" path" );
467467 }
468468 throw Exception (errors::Configuration)
@@ -476,8 +476,8 @@ namespace edm {
476476 // See if the filter is allowed.
477477 std::vector<std::string> allowed_filters =
478478 ioProcessPSet.getUntrackedParameter <std::vector<std::string>>(" @filters_on_endpaths" );
479- if (std::count (allowed_filters.begin (), allowed_filters.end (), module ->moduleDescription ().moduleName ()) ==
480- 0 ) {
479+ if (std::find (allowed_filters.begin (), allowed_filters.end (), module ->moduleDescription ().moduleName ()) ==
480+ allowed_filters. end () ) {
481481 // Filter is not allowed. Ignore the result, and issue a warning.
482482 filterAction = WorkerInPath::Ignore;
483483 LogWarning (" FilterOnEndPath" )
@@ -686,15 +686,17 @@ namespace edm {
686686 }
687687 }
688688 if (!shouldBeUsedLabels.empty ()) {
689- std::ostringstream unusedStream;
690- unusedStream << " '" << shouldBeUsedLabels.front () << " '" ;
691- for (std::vector<std::string>::iterator itLabel = shouldBeUsedLabels.begin () + 1 ,
692- itLabelEnd = shouldBeUsedLabels.end ();
693- itLabel != itLabelEnd;
694- ++itLabel) {
695- unusedStream << " ,'" << *itLabel << " '" ;
696- }
697- LogInfo (" path" ) << " The following module labels are not assigned to any path:\n " << unusedStream.str () << " \n " ;
689+ LogInfo (" path" ).log ([&shouldBeUsedLabels](auto & l) {
690+ l << " The following module labels are not assigned to any path:\n " ;
691+ l << " '" << shouldBeUsedLabels.front () << " '" ;
692+ for (std::vector<std::string>::iterator itLabel = shouldBeUsedLabels.begin () + 1 ,
693+ itLabelEnd = shouldBeUsedLabels.end ();
694+ itLabel != itLabelEnd;
695+ ++itLabel) {
696+ l << " ,'" << *itLabel << " '" ;
697+ }
698+ l << " \n " ;
699+ });
698700 }
699701 }
700702
0 commit comments