Просмотр исходного кода

meta_any: suppress a warning from clang

Michele Caini 4 лет назад
Родитель
Сommit
e6a5945463
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/entt/meta/meta.hpp

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

@@ -268,8 +268,8 @@ public:
      */
      */
     meta_any(meta_any &&other) ENTT_NOEXCEPT
     meta_any(meta_any &&other) ENTT_NOEXCEPT
         : storage{std::move(other.storage)},
         : storage{std::move(other.storage)},
-          vtable{std::exchange(other.vtable, &basic_vtable<void>)},
-          node{std::exchange(other.node, nullptr)}
+          node{std::exchange(other.node, nullptr)},
+          vtable{std::exchange(other.vtable, &basic_vtable<void>)}
     {}
     {}
 
 
     /*! @brief Frees the internal storage, whatever it means. */
     /*! @brief Frees the internal storage, whatever it means. */