diff --git a/parse/enum.hpp b/parse/enum.hpp index 22e5a097..d40052e0 100644 --- a/parse/enum.hpp +++ b/parse/enum.hpp @@ -143,7 +143,7 @@ namespace cruft::parse::enumeration { static_assert (std::is_integral_v); if constexpr (std::is_same_v) { - for (auto const [key,val]: m_cache) { + for (auto const &[key,val]: m_cache) { if (equal (key, str)) { str = str.consume (key.size ()); // We must cast the value here so that enum