diff --git a/src/components/controller.cpp b/src/components/controller.cpp index a85e6f7f..2bd37de1 100644 --- a/src/components/controller.cpp +++ b/src/components/controller.cpp @@ -97,7 +97,7 @@ controller::controller(connection& conn, signal_emitter& emitter, const logger& auto dup_it = m_modules.cbegin(); do { - auto equal_predicate = [](const auto& m1, const auto& m2) { return m1->name() == m2->name(); }; + auto equal_predicate = [](const module_t& m1, const module_t& m2) { return m1->name() == m2->name(); }; dup_it = std::adjacent_find(dup_it, m_modules.cend(), equal_predicate); if (dup_it != m_modules.cend()) {