diff options
author | Markus Härer <markus.haerer@gmx.net> | 2024-07-07 22:05:45 +0200 |
---|---|---|
committer | Markus Härer <markus.haerer@gmx.net> | 2024-07-10 01:39:53 +0200 |
commit | 6137da592ce203e736249d40174cbc3b7aa183c3 (patch) | |
tree | 74dc5d8efd20af70e8bbc1a6706583d2fd970de4 | |
parent | 1be7403820c92d355d3115fc177e732b6e3b9cab (diff) |
Map: Make CMap constructor consteval
-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)); } |