Browse Source

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

Michele Caini 4 years ago
parent
commit
df4d8e0411
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/entt/meta/meta.hpp

+ 2 - 2
src/entt/meta/meta.hpp

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