Browse Source

meta: meta_any::allow_cast returns a scoped value now

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

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

@@ -1543,8 +1543,7 @@ bool meta_any::set(const id_type id, Type &&value) {
         return other;
         return other;
     }
     }
 
 
-    // TODO
-    return {};
+    return meta_any{meta_ctx_arg, *ctx};
 }
 }
 
 
 inline bool meta_any::assign(const meta_any &other) {
 inline bool meta_any::assign(const meta_any &other) {