From 04716a7fde4b197364abf64d5606299bcd76b8b4 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 13 Oct 2022 09:38:22 +0200 Subject: [PATCH] meta: minor changes --- src/entt/meta/meta.hpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index b88daebf2..f4bc879ec 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -639,24 +639,6 @@ struct meta_handle { meta_handle(meta_ctx_arg_t, const meta_ctx &area) noexcept : any{meta_ctx_arg, area} {} - /*! @brief Default copy constructor, deleted on purpose. */ - meta_handle(const meta_handle &) = delete; - - /*! @brief Default move constructor. */ - meta_handle(meta_handle &&) = default; - - /** - * @brief Default copy assignment operator, deleted on purpose. - * @return This meta handle. - */ - meta_handle &operator=(const meta_handle &) = delete; - - /** - * @brief Default move assignment operator. - * @return This meta handle. - */ - meta_handle &operator=(meta_handle &&) = default; - /** * @brief Creates a handle that points to an unmanaged object. * @param value An instance of an object to use to initialize the handle. @@ -690,6 +672,24 @@ struct meta_handle { meta_handle(Type &value) noexcept : meta_handle{locator::value_or(), value} {} + /*! @brief Default copy constructor, deleted on purpose. */ + meta_handle(const meta_handle &) = delete; + + /*! @brief Default move constructor. */ + meta_handle(meta_handle &&) = default; + + /** + * @brief Default copy assignment operator, deleted on purpose. + * @return This meta handle. + */ + meta_handle &operator=(const meta_handle &) = delete; + + /** + * @brief Default move assignment operator. + * @return This meta handle. + */ + meta_handle &operator=(meta_handle &&) = default; + /** * @brief Returns false if a handle is invalid, true otherwise. * @return False if the handle is invalid, true otherwise.