Skip to content

Commit

Permalink
#1019 Add missing const to flecs::string getters
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyoyuppe authored Aug 5, 2023
1 parent 88bcbc3 commit d09e2a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/flecs/addons/cpp/utils/string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct string {
return m_const_str;
}

std::size_t length() {
std::size_t length() const {
return static_cast<std::size_t>(m_length);
}

Expand All @@ -105,7 +105,7 @@ struct string {
return N - 1;
}

std::size_t size() {
std::size_t size() const {
return length();
}

Expand Down

0 comments on commit d09e2a5

Please sign in to comment.