فهرست منبع

snapshot: add missing [[deprecate(...)]]

Michele Caini 3 سال پیش
والد
کامیت
e7a3c4e370
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/entt/entity/snapshot.hpp

+ 2 - 2
src/entt/entity/snapshot.hpp

@@ -102,7 +102,7 @@ public:
      * @return An object of this type to continue creating the snapshot.
      * @return An object of this type to continue creating the snapshot.
      */
      */
     template<typename First, typename Second, typename... Other, typename Archive>
     template<typename First, typename Second, typename... Other, typename Archive>
-    [[deprecated("use .component<Type>() instead")]] const basic_snapshot &component(Archive &archive) const {
+    [[deprecated("use .component<Type>(archive) instead")]] const basic_snapshot &component(Archive &archive) const {
         component<First>(archive);
         component<First>(archive);
         component<Second>(archive);
         component<Second>(archive);
         (component<Other>(archive), ...);
         (component<Other>(archive), ...);
@@ -154,7 +154,7 @@ public:
      * @return An object of this type to continue creating the snapshot.
      * @return An object of this type to continue creating the snapshot.
      */
      */
     template<typename First, typename Second, typename... Other, typename Archive, typename It>
     template<typename First, typename Second, typename... Other, typename Archive, typename It>
-    const basic_snapshot &component(Archive &archive, It first, It last) const {
+    [[deprecated("use .component<Type>(archive, first, last) instead")]] const basic_snapshot &component(Archive &archive, It first, It last) const {
         component<First>(archive, first, last);
         component<First>(archive, first, last);
         component<Second>(archive, first, last);
         component<Second>(archive, first, last);
         (component<Other>(archive, first, last), ...);
         (component<Other>(archive, first, last), ...);