Skip to content

Commit

Permalink
Review update
Browse files Browse the repository at this point in the history
- use auto in lambda

Co-authored-by: Tobias Ribizel <ribizel@kit.edu>
  • Loading branch information
2 people authored and tcojean committed Aug 5, 2021
1 parent 4722b09 commit e8001b5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions include/ginkgo/core/log/logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,9 @@ class EnableLogging : public PolymorphicBase {

void remove_logger(const Logger *logger) override
{
auto idx = find_if(begin(loggers_), end(loggers_),
[&logger](std::shared_ptr<const Logger> &l) {
return lend(l) == logger;
});
auto idx =
find_if(begin(loggers_), end(loggers_),
[&logger](const auto &l) { return lend(l) == logger; });
if (idx != end(loggers_)) {
loggers_.erase(idx);
} else {
Expand Down

0 comments on commit e8001b5

Please sign in to comment.