Browse Source

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

Michele Caini 2 years ago
parent
commit
e7a3c4e370
1 changed files with 2 additions and 2 deletions
  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.
      */
     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<Second>(archive);
         (component<Other>(archive), ...);
@@ -154,7 +154,7 @@ public:
      * @return An object of this type to continue creating the snapshot.
      */
     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<Second>(archive, first, last);
         (component<Other>(archive, first, last), ...);