From caa5df52b1943e875a5482ec65464bc7cb08ffca Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Thu, 3 Aug 2023 18:05:51 +0700 Subject: [PATCH] fix indexes' get_name by rvalue --- develop/singles/headers/meta.hpp/meta_all.hpp | 24 +++++++++---------- headers/meta.hpp/meta_indices.hpp | 12 +++++----- .../meta.hpp/meta_indices/evalue_index.hpp | 2 +- .../meta.hpp/meta_indices/function_index.hpp | 2 +- .../meta.hpp/meta_indices/member_index.hpp | 2 +- .../meta.hpp/meta_indices/method_index.hpp | 2 +- headers/meta.hpp/meta_indices/scope_index.hpp | 2 +- .../meta.hpp/meta_indices/variable_index.hpp | 2 +- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/develop/singles/headers/meta.hpp/meta_all.hpp b/develop/singles/headers/meta.hpp/meta_all.hpp index 703cf43..ae251cc 100644 --- a/develop/singles/headers/meta.hpp/meta_all.hpp +++ b/develop/singles/headers/meta.hpp/meta_all.hpp @@ -3128,7 +3128,7 @@ namespace meta_hpp [[nodiscard]] enum_type get_type() const noexcept; - [[nodiscard]] std::string&& get_name() && noexcept; + [[nodiscard]] std::string get_name() && noexcept; [[nodiscard]] const std::string& get_name() const& noexcept; void swap(evalue_index& other) noexcept; @@ -3147,7 +3147,7 @@ namespace meta_hpp [[nodiscard]] function_type get_type() const noexcept; - [[nodiscard]] std::string&& get_name() && noexcept; + [[nodiscard]] std::string get_name() && noexcept; [[nodiscard]] const std::string& get_name() const& noexcept; void swap(function_index& other) noexcept; @@ -3166,7 +3166,7 @@ namespace meta_hpp [[nodiscard]] member_type get_type() const noexcept; - [[nodiscard]] std::string&& get_name() && noexcept; + [[nodiscard]] std::string get_name() && noexcept; [[nodiscard]] const std::string& get_name() const& noexcept; void swap(member_index& other) noexcept; @@ -3185,7 +3185,7 @@ namespace meta_hpp [[nodiscard]] method_type get_type() const noexcept; - [[nodiscard]] std::string&& get_name() && noexcept; + [[nodiscard]] std::string get_name() && noexcept; [[nodiscard]] const std::string& get_name() const& noexcept; void swap(method_index& other) noexcept; @@ -3202,7 +3202,7 @@ namespace meta_hpp scope_index() = delete; explicit scope_index(std::string name); - [[nodiscard]] std::string&& get_name() && noexcept; + [[nodiscard]] std::string get_name() && noexcept; [[nodiscard]] const std::string& get_name() const& noexcept; void swap(scope_index& other) noexcept; @@ -3220,7 +3220,7 @@ namespace meta_hpp [[nodiscard]] pointer_type get_type() const noexcept; - [[nodiscard]] std::string&& get_name() && noexcept; + [[nodiscard]] std::string get_name() && noexcept; [[nodiscard]] const std::string& get_name() const& noexcept; void swap(variable_index& other) noexcept; @@ -5391,7 +5391,7 @@ namespace meta_hpp return type_; } - inline std::string&& evalue_index::get_name() && noexcept { + inline std::string evalue_index::get_name() && noexcept { return std::move(name_); } @@ -5419,7 +5419,7 @@ namespace meta_hpp return type_; } - inline std::string&& function_index::get_name() && noexcept { + inline std::string function_index::get_name() && noexcept { return std::move(name_); } @@ -5447,7 +5447,7 @@ namespace meta_hpp return type_; } - inline std::string&& member_index::get_name() && noexcept { + inline std::string member_index::get_name() && noexcept { return std::move(name_); } @@ -5475,7 +5475,7 @@ namespace meta_hpp return type_; } - inline std::string&& method_index::get_name() && noexcept { + inline std::string method_index::get_name() && noexcept { return std::move(name_); } @@ -5498,7 +5498,7 @@ namespace meta_hpp inline scope_index::scope_index(std::string name) : name_{std::move(name)} {} - inline std::string&& scope_index::get_name() && noexcept { + inline std::string scope_index::get_name() && noexcept { return std::move(name_); } @@ -5525,7 +5525,7 @@ namespace meta_hpp return type_; } - inline std::string&& variable_index::get_name() && noexcept { + inline std::string variable_index::get_name() && noexcept { return std::move(name_); } diff --git a/headers/meta.hpp/meta_indices.hpp b/headers/meta.hpp/meta_indices.hpp index 2b18f99..b41426f 100644 --- a/headers/meta.hpp/meta_indices.hpp +++ b/headers/meta.hpp/meta_indices.hpp @@ -65,7 +65,7 @@ namespace meta_hpp [[nodiscard]] enum_type get_type() const noexcept; - [[nodiscard]] std::string&& get_name() && noexcept; + [[nodiscard]] std::string get_name() && noexcept; [[nodiscard]] const std::string& get_name() const& noexcept; void swap(evalue_index& other) noexcept; @@ -84,7 +84,7 @@ namespace meta_hpp [[nodiscard]] function_type get_type() const noexcept; - [[nodiscard]] std::string&& get_name() && noexcept; + [[nodiscard]] std::string get_name() && noexcept; [[nodiscard]] const std::string& get_name() const& noexcept; void swap(function_index& other) noexcept; @@ -103,7 +103,7 @@ namespace meta_hpp [[nodiscard]] member_type get_type() const noexcept; - [[nodiscard]] std::string&& get_name() && noexcept; + [[nodiscard]] std::string get_name() && noexcept; [[nodiscard]] const std::string& get_name() const& noexcept; void swap(member_index& other) noexcept; @@ -122,7 +122,7 @@ namespace meta_hpp [[nodiscard]] method_type get_type() const noexcept; - [[nodiscard]] std::string&& get_name() && noexcept; + [[nodiscard]] std::string get_name() && noexcept; [[nodiscard]] const std::string& get_name() const& noexcept; void swap(method_index& other) noexcept; @@ -139,7 +139,7 @@ namespace meta_hpp scope_index() = delete; explicit scope_index(std::string name); - [[nodiscard]] std::string&& get_name() && noexcept; + [[nodiscard]] std::string get_name() && noexcept; [[nodiscard]] const std::string& get_name() const& noexcept; void swap(scope_index& other) noexcept; @@ -157,7 +157,7 @@ namespace meta_hpp [[nodiscard]] pointer_type get_type() const noexcept; - [[nodiscard]] std::string&& get_name() && noexcept; + [[nodiscard]] std::string get_name() && noexcept; [[nodiscard]] const std::string& get_name() const& noexcept; void swap(variable_index& other) noexcept; diff --git a/headers/meta.hpp/meta_indices/evalue_index.hpp b/headers/meta.hpp/meta_indices/evalue_index.hpp index 429f5b3..f35b36c 100644 --- a/headers/meta.hpp/meta_indices/evalue_index.hpp +++ b/headers/meta.hpp/meta_indices/evalue_index.hpp @@ -20,7 +20,7 @@ namespace meta_hpp return type_; } - inline std::string&& evalue_index::get_name() && noexcept { + inline std::string evalue_index::get_name() && noexcept { return std::move(name_); } diff --git a/headers/meta.hpp/meta_indices/function_index.hpp b/headers/meta.hpp/meta_indices/function_index.hpp index 2d556ee..d9f0ff9 100644 --- a/headers/meta.hpp/meta_indices/function_index.hpp +++ b/headers/meta.hpp/meta_indices/function_index.hpp @@ -20,7 +20,7 @@ namespace meta_hpp return type_; } - inline std::string&& function_index::get_name() && noexcept { + inline std::string function_index::get_name() && noexcept { return std::move(name_); } diff --git a/headers/meta.hpp/meta_indices/member_index.hpp b/headers/meta.hpp/meta_indices/member_index.hpp index b64a80d..75f24d8 100644 --- a/headers/meta.hpp/meta_indices/member_index.hpp +++ b/headers/meta.hpp/meta_indices/member_index.hpp @@ -20,7 +20,7 @@ namespace meta_hpp return type_; } - inline std::string&& member_index::get_name() && noexcept { + inline std::string member_index::get_name() && noexcept { return std::move(name_); } diff --git a/headers/meta.hpp/meta_indices/method_index.hpp b/headers/meta.hpp/meta_indices/method_index.hpp index 2c0a341..00d1559 100644 --- a/headers/meta.hpp/meta_indices/method_index.hpp +++ b/headers/meta.hpp/meta_indices/method_index.hpp @@ -20,7 +20,7 @@ namespace meta_hpp return type_; } - inline std::string&& method_index::get_name() && noexcept { + inline std::string method_index::get_name() && noexcept { return std::move(name_); } diff --git a/headers/meta.hpp/meta_indices/scope_index.hpp b/headers/meta.hpp/meta_indices/scope_index.hpp index bda8a09..b2752c4 100644 --- a/headers/meta.hpp/meta_indices/scope_index.hpp +++ b/headers/meta.hpp/meta_indices/scope_index.hpp @@ -15,7 +15,7 @@ namespace meta_hpp inline scope_index::scope_index(std::string name) : name_{std::move(name)} {} - inline std::string&& scope_index::get_name() && noexcept { + inline std::string scope_index::get_name() && noexcept { return std::move(name_); } diff --git a/headers/meta.hpp/meta_indices/variable_index.hpp b/headers/meta.hpp/meta_indices/variable_index.hpp index 35eae3b..af641cd 100644 --- a/headers/meta.hpp/meta_indices/variable_index.hpp +++ b/headers/meta.hpp/meta_indices/variable_index.hpp @@ -20,7 +20,7 @@ namespace meta_hpp return type_; } - inline std::string&& variable_index::get_name() && noexcept { + inline std::string variable_index::get_name() && noexcept { return std::move(name_); }