Skip to content
Snippets Groups Projects
Commit 7d5bae8b authored by Gerhard Raven's avatar Gerhard Raven
Browse files

two temporary string copies less

parent c75c005b
No related branches found
No related tags found
1 merge request!483Simplify gaudisequencer
......@@ -288,12 +288,14 @@ StatusCode GaudiSequencer::decodeNames()
MsgStream& msg = info();
if ( m_modeOR ) msg << "OR ";
msg << "Member list: ";
GaudiUtils::details::ostream_joiner(
msg, m_entries, ", ", []( auto& os, const AlgorithmEntry& e ) -> decltype( auto ) {
Algorithm* alg = e.algorithm();
std::string typ = System::typeinfoName( typeid( *alg ) );
return os << ( alg->name() == typ ? alg->name() : ( typ + "/" + alg->name() ) );
} );
GaudiUtils::details::ostream_joiner( msg, m_entries, ", ",
[]( auto& os, const AlgorithmEntry& e ) -> decltype( auto ) {
Algorithm* alg = e.algorithm();
std::string typ = System::typeinfoName( typeid( *alg ) );
os << typ;
if ( alg->name() != typ ) os << "/" << alg->name();
return os;
} );
if ( !isDefault( context() ) ) msg << ", with context '" << context() << "'";
if ( !isDefault( rootInTES() ) ) msg << ", with rootInTES '" << rootInTES() << "'";
msg << endmsg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment