diff --git a/package/src/registry.h b/package/src/registry.h index 1e6b403..6886c90 100644 --- a/package/src/registry.h +++ b/package/src/registry.h @@ -65,7 +65,7 @@ class Registry { static std::vector list_registered() { std::vector list{}; - for (const auto k : ctors()) { + for (const auto& k : ctors()) { list.push_back(k.first); } return list;