diff options
-rw-r--r-- | xbmc/utils/Map.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/utils/Map.h b/xbmc/utils/Map.h index 21c4011621..4e14432e05 100644 --- a/xbmc/utils/Map.h +++ b/xbmc/utils/Map.h @@ -34,7 +34,7 @@ class CMap { public: template<typename Iterable> - constexpr CMap(Iterable begin, Iterable end) + consteval CMap(Iterable begin, Iterable end) { std::move(begin, end, m_map.begin()); @@ -97,7 +97,7 @@ private: * */ template<typename Key, typename Value, std::size_t Size> -constexpr auto make_map(std::pair<Key, Value>(&&m)[Size]) -> CMap<Key, Value, Size> +consteval auto make_map(std::pair<Key, Value> (&&m)[Size]) -> CMap<Key, Value, Size> { return CMap<Key, Value, Size>(std::begin(m), std::end(m)); } |