diff options
Diffstat (limited to 'src/string_map.cpp')
| -rw-r--r-- | src/string_map.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/string_map.cpp b/src/string_map.cpp index f8b86a950..894579a03 100644 --- a/src/string_map.cpp +++ b/src/string_map.cpp @@ -2,8 +2,8 @@ GB_STATIC_ASSERT(sizeof(MapIndex) == sizeof(u32)); struct StringHashKey { - u32 hash; String string; + u32 hash; operator String() const noexcept { return this->string; @@ -329,11 +329,12 @@ gb_internal StringMapEntry<T> const *begin(StringMap<T> const &m) noexcept { template <typename T> -gb_internal StringMapEntry<T> *end(StringMap<T> &m) { +gb_internal StringMapEntry<T> *end(StringMap<T> &m) noexcept { return m.entries + m.count; } template <typename T> gb_internal StringMapEntry<T> const *end(StringMap<T> const &m) noexcept { return m.entries + m.count; -}
\ No newline at end of file +} + |