ソースを参照

*: updated messages for deprecated functions

Michele Caini 4 年 前
コミット
64d9380031
3 ファイル変更3 行追加3 行削除
  1. 1 1
      TODO
  2. 1 1
      src/entt/core/any.hpp
  3. 1 1
      src/entt/meta/meta.hpp

+ 1 - 1
TODO

@@ -10,7 +10,7 @@ WIP:
 * isolate view iterator, unwrap iterators in registry ::remove/::erase/::destroy to use the faster solution for non-view iterators
 * compressed pair to exploit ebo in sparse set and the others
 * rename sparse_set::entity_type (and the others) to value_type
-* any/meta: remove dependency on <functional> (reference_wrapper, invoke)
+* any/meta: remove dependency on <functional> (reference_wrapper, invoke), remove meta_any::type and use something like entt::type_from_meta
 * scheduler, use any (or poly?) instead of unique_ptr
 * resource, forward the id to the loader from the cache and if constexpr the call to load, update doc and describe customization points
 * make it possible to create views of the type `view<T, T>`, add get by index and such, allow to register custom pools by name with the registry

+ 1 - 1
src/entt/core/any.hpp

@@ -261,7 +261,7 @@ public:
      * @return This any object.
      */
     template<typename Type>
-    [[deprecated("Use std::in_place_type<T &>, entt::make_any<T &> or emplace<Type &> instead")]]
+    [[deprecated("Use std::in_place_type<T &>, entt::make_any<T &>, emplace<Type &> or forward_as_any instead")]]
     basic_any & operator=(std::reference_wrapper<Type> value) ENTT_NOEXCEPT {
         emplace<Type &>(value.get());
         return *this;

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

@@ -322,7 +322,7 @@ public:
      * @return This meta any object.
      */
     template<typename Type>
-    [[deprecated("Use std::in_place_type<T &>, entt::make_meta<T &> or emplace<Type &> instead")]]
+    [[deprecated("Use std::in_place_type<T &>, entt::make_meta<T &>, emplace<Type &> or forward_as_meta instead")]]
     meta_any & operator=(std::reference_wrapper<Type> value) {
         emplace<Type &>(value.get());
         return *this;