Explorar el Código

meta: make meta_type::from_void const as it ought to be

Michele Caini hace 3 años
padre
commit
382187089c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/entt/meta/meta.hpp

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

@@ -1236,12 +1236,12 @@ public:
      * @param element A valid pointer to an element of the underlying type.
      * @return A wrapper that references the given instance.
      */
-    meta_any from_void(void *element) {
+    meta_any from_void(void *element) const {
         return (element && node->from_void) ? node->from_void(element, nullptr) : meta_any{};
     }
 
     /*! @copydoc from_void */
-    meta_any from_void(const void *element) {
+    meta_any from_void(const void *element) const {
         return (element && node->from_void) ? node->from_void(nullptr, element) : meta_any{};
     }