meta: make meta_iterator::operator-> const as it ought to be

This commit is contained in:
Michele Caini
2021-10-01 10:57:16 +02:00
parent 4f1820bcad
commit df4d8e0411

View File

@@ -1542,7 +1542,7 @@ public:
* @brief Access operator for accessing the pointed opaque object.
* @return The element to which the iterator points.
*/
[[nodiscard]] pointer operator->() ENTT_NOEXCEPT {
[[nodiscard]] pointer operator->() const ENTT_NOEXCEPT {
return operator*();
}
@@ -1749,7 +1749,7 @@ public:
* @brief Access operator for accessing the pointed opaque object.
* @return The element to which the iterator points.
*/
[[nodiscard]] pointer operator->() ENTT_NOEXCEPT {
[[nodiscard]] pointer operator->() const ENTT_NOEXCEPT {
return operator*();
}