Procházet zdrojové kódy

meta: minor changes

Michele Caini před 4 roky
rodič
revize
0ebdfe59ee
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/entt/meta/meta.hpp

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

@@ -155,7 +155,7 @@ class meta_any {
             switch(op) {
             case operation::deref:
                 if constexpr(is_meta_pointer_like_v<Type>) {
-                    if constexpr(std::is_function_v<std::remove_const_t<typename std::pointer_traits<Type>::element_type>>) {
+                    if constexpr(std::is_function_v<typename std::pointer_traits<Type>::element_type>) {
                         *static_cast<meta_any *>(other) = any_cast<Type>(value);
                     } else if constexpr(!std::is_same_v<std::remove_const_t<typename std::pointer_traits<Type>::element_type>, void>) {
                         using in_place_type = decltype(adl_meta_pointer_like<Type>::dereference(any_cast<const Type &>(value)));