Parcourir la source

observer: deprecated, use reactive mixin instead

Michele Caini il y a 1 an
Parent
commit
84308361ae
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/entt/entity/observer.hpp

+ 1 - 1
src/entt/entity/observer.hpp

@@ -66,7 +66,7 @@ struct basic_collector<> {
  * @tparam Other Other matchers.
  */
 template<typename... Reject, typename... Require, typename... Rule, typename... Other>
-struct basic_collector<matcher<type_list<Reject...>, type_list<Require...>, Rule...>, Other...> {
+struct [[deprecated("use reactive mixin instead")]] basic_collector<matcher<type_list<Reject...>, type_list<Require...>, Rule...>, Other...> {
     /*! @brief Current matcher. */
     using current_type = matcher<type_list<Reject...>, type_list<Require...>, Rule...>;