mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-13 19:18:01 +07:00
fix indexes' get_name by rvalue
This commit is contained in:
@@ -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_);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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_);
|
||||
}
|
||||
|
||||
|
||||
@@ -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_);
|
||||
}
|
||||
|
||||
|
||||
@@ -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_);
|
||||
}
|
||||
|
||||
|
||||
@@ -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_);
|
||||
}
|
||||
|
||||
|
||||
@@ -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_);
|
||||
}
|
||||
|
||||
|
||||
@@ -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_);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user