diff --git a/develop/singles/headers/meta.hpp/meta_all.hpp b/develop/singles/headers/meta.hpp/meta_all.hpp index 4e166d1..a80eb77 100644 --- a/develop/singles/headers/meta.hpp/meta_all.hpp +++ b/develop/singles/headers/meta.hpp/meta_all.hpp @@ -2621,7 +2621,7 @@ namespace meta_hpp { class argument_index final { public: - [[nodiscard]] const any_type& get_type() const noexcept; + [[nodiscard]] any_type get_type() const noexcept; [[nodiscard]] std::size_t get_position() const noexcept; [[nodiscard]] std::size_t get_hash() const noexcept; @@ -2638,7 +2638,7 @@ namespace meta_hpp class constructor_index final { public: - [[nodiscard]] const constructor_type& get_type() const noexcept; + [[nodiscard]] constructor_type get_type() const noexcept; [[nodiscard]] std::size_t get_hash() const noexcept; [[nodiscard]] std::strong_ordering operator<=>(const constructor_index&) const = default; @@ -2653,7 +2653,7 @@ namespace meta_hpp class destructor_index final { public: - [[nodiscard]] const destructor_type& get_type() const noexcept; + [[nodiscard]] destructor_type get_type() const noexcept; [[nodiscard]] std::size_t get_hash() const noexcept; [[nodiscard]] std::strong_ordering operator<=>(const destructor_index&) const = default; @@ -2668,7 +2668,7 @@ namespace meta_hpp class evalue_index final { public: - [[nodiscard]] const enum_type& get_type() const noexcept; + [[nodiscard]] enum_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; [[nodiscard]] std::size_t get_hash() const noexcept; @@ -2685,7 +2685,7 @@ namespace meta_hpp class function_index final { public: - [[nodiscard]] const function_type& get_type() const noexcept; + [[nodiscard]] function_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; [[nodiscard]] std::size_t get_hash() const noexcept; @@ -2702,7 +2702,7 @@ namespace meta_hpp class member_index final { public: - [[nodiscard]] const member_type& get_type() const noexcept; + [[nodiscard]] member_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; [[nodiscard]] std::size_t get_hash() const noexcept; @@ -2719,10 +2719,10 @@ namespace meta_hpp class method_index final { public: - [[nodiscard]] std::size_t get_hash() const noexcept; - [[nodiscard]] const method_type& get_type() const noexcept; + [[nodiscard]] method_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; + [[nodiscard]] std::size_t get_hash() const noexcept; [[nodiscard]] std::strong_ordering operator<=>(const method_index&) const = default; private: @@ -2751,7 +2751,7 @@ namespace meta_hpp class variable_index final { public: - [[nodiscard]] const pointer_type& get_type() const noexcept; + [[nodiscard]] pointer_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; [[nodiscard]] std::size_t get_hash() const noexcept; @@ -3062,7 +3062,7 @@ namespace meta_hpp [[nodiscard]] const argument_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const any_type& get_type() const noexcept; + [[nodiscard]] any_type get_type() const noexcept; [[nodiscard]] std::size_t get_position() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; @@ -3086,7 +3086,7 @@ namespace meta_hpp [[nodiscard]] const constructor_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const constructor_type& get_type() const noexcept; + [[nodiscard]] constructor_type get_type() const noexcept; template < typename... Args > [[nodiscard]] uvalue create(Args&&... args) const; @@ -3122,7 +3122,7 @@ namespace meta_hpp [[nodiscard]] const destructor_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const destructor_type& get_type() const noexcept; + [[nodiscard]] destructor_type get_type() const noexcept; template < typename Arg > bool destroy(Arg&& arg) const; @@ -3148,7 +3148,7 @@ namespace meta_hpp [[nodiscard]] const evalue_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const enum_type& get_type() const noexcept; + [[nodiscard]] enum_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; [[nodiscard]] const uvalue& get_value() const noexcept; @@ -3179,7 +3179,7 @@ namespace meta_hpp [[nodiscard]] const function_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const function_type& get_type() const noexcept; + [[nodiscard]] function_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; template < typename... Args > @@ -3216,7 +3216,7 @@ namespace meta_hpp [[nodiscard]] const member_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const member_type& get_type() const noexcept; + [[nodiscard]] member_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; template < typename Instance > @@ -3265,7 +3265,7 @@ namespace meta_hpp [[nodiscard]] const method_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const method_type& get_type() const noexcept; + [[nodiscard]] method_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; template < typename Instance, typename... Args > @@ -3338,7 +3338,7 @@ namespace meta_hpp [[nodiscard]] const variable_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const pointer_type& get_type() const noexcept; + [[nodiscard]] pointer_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; [[nodiscard]] uvalue get() const; @@ -4789,7 +4789,7 @@ namespace meta_hpp : type_{type} , position_{position} {} - inline const any_type& argument_index::get_type() const noexcept { + inline any_type argument_index::get_type() const noexcept { return type_; } @@ -4807,7 +4807,7 @@ namespace meta_hpp inline constructor_index::constructor_index(constructor_type type) : type_{type} {} - inline const constructor_type& constructor_index::get_type() const noexcept { + inline constructor_type constructor_index::get_type() const noexcept { return type_; } @@ -4821,7 +4821,7 @@ namespace meta_hpp inline destructor_index::destructor_index(destructor_type type) : type_{type} {} - inline const destructor_type& destructor_index::get_type() const noexcept { + inline destructor_type destructor_index::get_type() const noexcept { return type_; } @@ -4836,7 +4836,7 @@ namespace meta_hpp : type_{type} , name_{std::move(name)} {} - inline const enum_type& evalue_index::get_type() const noexcept { + inline enum_type evalue_index::get_type() const noexcept { return type_; } @@ -4855,7 +4855,7 @@ namespace meta_hpp : type_{type} , name_{std::move(name)} {} - inline const function_type& function_index::get_type() const noexcept { + inline function_type function_index::get_type() const noexcept { return type_; } @@ -4874,7 +4874,7 @@ namespace meta_hpp : type_{type} , name_{std::move(name)} {} - inline const member_type& member_index::get_type() const noexcept { + inline member_type member_index::get_type() const noexcept { return type_; } @@ -4893,7 +4893,7 @@ namespace meta_hpp : type_{type} , name_{std::move(name)} {} - inline const method_type& method_index::get_type() const noexcept { + inline method_type method_index::get_type() const noexcept { return type_; } @@ -4926,7 +4926,7 @@ namespace meta_hpp : type_{type} , name_{std::move(name)} {} - inline const pointer_type& variable_index::get_type() const noexcept { + inline pointer_type variable_index::get_type() const noexcept { return type_; } @@ -4974,7 +4974,7 @@ namespace meta_hpp return state_->metadata; } - inline const any_type& argument::get_type() const noexcept { + inline any_type argument::get_type() const noexcept { return state_->index.get_type(); } @@ -5178,7 +5178,7 @@ namespace meta_hpp::detail return ref_type_; } - [[nodiscard]] const any_type& get_raw_type() const noexcept { + [[nodiscard]] any_type get_raw_type() const noexcept { return raw_type_; } @@ -5664,7 +5664,7 @@ namespace meta_hpp return state_->metadata; } - inline const constructor_type& constructor::get_type() const noexcept { + inline constructor_type constructor::get_type() const noexcept { return state_->index.get_type(); } @@ -5836,7 +5836,7 @@ namespace meta_hpp return state_->metadata; } - inline const destructor_type& destructor::get_type() const noexcept { + inline destructor_type destructor::get_type() const noexcept { return state_->index.get_type(); } @@ -5971,7 +5971,7 @@ namespace meta_hpp return state_->metadata; } - inline const enum_type& evalue::get_type() const noexcept { + inline enum_type evalue::get_type() const noexcept { return state_->index.get_type(); } @@ -6192,7 +6192,7 @@ namespace meta_hpp return state_->metadata; } - inline const function_type& function::get_type() const noexcept { + inline function_type function::get_type() const noexcept { return state_->index.get_type(); } @@ -6317,7 +6317,7 @@ namespace meta_hpp::detail return ref_type_; } - [[nodiscard]] const any_type& get_raw_type() const noexcept { + [[nodiscard]] any_type get_raw_type() const noexcept { return raw_type_; } @@ -6686,7 +6686,7 @@ namespace meta_hpp return state_->metadata; } - inline const member_type& member::get_type() const noexcept { + inline member_type member::get_type() const noexcept { return state_->index.get_type(); } @@ -6967,7 +6967,7 @@ namespace meta_hpp return state_->metadata; } - inline const method_type& method::get_type() const noexcept { + inline method_type method::get_type() const noexcept { return state_->index.get_type(); } @@ -7184,7 +7184,7 @@ namespace meta_hpp return state_->metadata; } - inline const pointer_type& variable::get_type() const noexcept { + inline pointer_type variable::get_type() const noexcept { return state_->index.get_type(); } diff --git a/headers/meta.hpp/meta_detail/value_utilities/uarg.hpp b/headers/meta.hpp/meta_detail/value_utilities/uarg.hpp index 5b66bfc..1ba3777 100644 --- a/headers/meta.hpp/meta_detail/value_utilities/uarg.hpp +++ b/headers/meta.hpp/meta_detail/value_utilities/uarg.hpp @@ -77,7 +77,7 @@ namespace meta_hpp::detail return ref_type_; } - [[nodiscard]] const any_type& get_raw_type() const noexcept { + [[nodiscard]] any_type get_raw_type() const noexcept { return raw_type_; } diff --git a/headers/meta.hpp/meta_detail/value_utilities/uinst.hpp b/headers/meta.hpp/meta_detail/value_utilities/uinst.hpp index f3793af..f7c49e3 100644 --- a/headers/meta.hpp/meta_detail/value_utilities/uinst.hpp +++ b/headers/meta.hpp/meta_detail/value_utilities/uinst.hpp @@ -82,7 +82,7 @@ namespace meta_hpp::detail return ref_type_; } - [[nodiscard]] const any_type& get_raw_type() const noexcept { + [[nodiscard]] any_type get_raw_type() const noexcept { return raw_type_; } diff --git a/headers/meta.hpp/meta_indices.hpp b/headers/meta.hpp/meta_indices.hpp index fc8b431..4bd5b62 100644 --- a/headers/meta.hpp/meta_indices.hpp +++ b/headers/meta.hpp/meta_indices.hpp @@ -15,7 +15,7 @@ namespace meta_hpp { class argument_index final { public: - [[nodiscard]] const any_type& get_type() const noexcept; + [[nodiscard]] any_type get_type() const noexcept; [[nodiscard]] std::size_t get_position() const noexcept; [[nodiscard]] std::size_t get_hash() const noexcept; @@ -32,7 +32,7 @@ namespace meta_hpp class constructor_index final { public: - [[nodiscard]] const constructor_type& get_type() const noexcept; + [[nodiscard]] constructor_type get_type() const noexcept; [[nodiscard]] std::size_t get_hash() const noexcept; [[nodiscard]] std::strong_ordering operator<=>(const constructor_index&) const = default; @@ -47,7 +47,7 @@ namespace meta_hpp class destructor_index final { public: - [[nodiscard]] const destructor_type& get_type() const noexcept; + [[nodiscard]] destructor_type get_type() const noexcept; [[nodiscard]] std::size_t get_hash() const noexcept; [[nodiscard]] std::strong_ordering operator<=>(const destructor_index&) const = default; @@ -62,7 +62,7 @@ namespace meta_hpp class evalue_index final { public: - [[nodiscard]] const enum_type& get_type() const noexcept; + [[nodiscard]] enum_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; [[nodiscard]] std::size_t get_hash() const noexcept; @@ -79,7 +79,7 @@ namespace meta_hpp class function_index final { public: - [[nodiscard]] const function_type& get_type() const noexcept; + [[nodiscard]] function_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; [[nodiscard]] std::size_t get_hash() const noexcept; @@ -96,7 +96,7 @@ namespace meta_hpp class member_index final { public: - [[nodiscard]] const member_type& get_type() const noexcept; + [[nodiscard]] member_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; [[nodiscard]] std::size_t get_hash() const noexcept; @@ -113,10 +113,10 @@ namespace meta_hpp class method_index final { public: - [[nodiscard]] std::size_t get_hash() const noexcept; - [[nodiscard]] const method_type& get_type() const noexcept; + [[nodiscard]] method_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; + [[nodiscard]] std::size_t get_hash() const noexcept; [[nodiscard]] std::strong_ordering operator<=>(const method_index&) const = default; private: @@ -145,7 +145,7 @@ namespace meta_hpp class variable_index final { public: - [[nodiscard]] const pointer_type& get_type() const noexcept; + [[nodiscard]] pointer_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; [[nodiscard]] std::size_t get_hash() const noexcept; diff --git a/headers/meta.hpp/meta_indices/argument_index.hpp b/headers/meta.hpp/meta_indices/argument_index.hpp index 6e5f046..73a3df7 100644 --- a/headers/meta.hpp/meta_indices/argument_index.hpp +++ b/headers/meta.hpp/meta_indices/argument_index.hpp @@ -17,7 +17,7 @@ namespace meta_hpp : type_{type} , position_{position} {} - inline const any_type& argument_index::get_type() const noexcept { + inline any_type argument_index::get_type() const noexcept { return type_; } diff --git a/headers/meta.hpp/meta_indices/constructor_index.hpp b/headers/meta.hpp/meta_indices/constructor_index.hpp index 1dc6fc8..00740f7 100644 --- a/headers/meta.hpp/meta_indices/constructor_index.hpp +++ b/headers/meta.hpp/meta_indices/constructor_index.hpp @@ -16,7 +16,7 @@ namespace meta_hpp inline constructor_index::constructor_index(constructor_type type) : type_{type} {} - inline const constructor_type& constructor_index::get_type() const noexcept { + inline constructor_type constructor_index::get_type() const noexcept { return type_; } diff --git a/headers/meta.hpp/meta_indices/destructor_index.hpp b/headers/meta.hpp/meta_indices/destructor_index.hpp index 1e4937f..bb0ed49 100644 --- a/headers/meta.hpp/meta_indices/destructor_index.hpp +++ b/headers/meta.hpp/meta_indices/destructor_index.hpp @@ -16,7 +16,7 @@ namespace meta_hpp inline destructor_index::destructor_index(destructor_type type) : type_{type} {} - inline const destructor_type& destructor_index::get_type() const noexcept { + inline destructor_type destructor_index::get_type() const noexcept { return type_; } diff --git a/headers/meta.hpp/meta_indices/evalue_index.hpp b/headers/meta.hpp/meta_indices/evalue_index.hpp index b8c7ed5..b903201 100644 --- a/headers/meta.hpp/meta_indices/evalue_index.hpp +++ b/headers/meta.hpp/meta_indices/evalue_index.hpp @@ -17,7 +17,7 @@ namespace meta_hpp : type_{type} , name_{std::move(name)} {} - inline const enum_type& evalue_index::get_type() const noexcept { + inline enum_type evalue_index::get_type() const noexcept { return type_; } diff --git a/headers/meta.hpp/meta_indices/function_index.hpp b/headers/meta.hpp/meta_indices/function_index.hpp index d954dc3..5a4dc3d 100644 --- a/headers/meta.hpp/meta_indices/function_index.hpp +++ b/headers/meta.hpp/meta_indices/function_index.hpp @@ -17,7 +17,7 @@ namespace meta_hpp : type_{type} , name_{std::move(name)} {} - inline const function_type& function_index::get_type() const noexcept { + inline function_type function_index::get_type() const noexcept { return type_; } diff --git a/headers/meta.hpp/meta_indices/member_index.hpp b/headers/meta.hpp/meta_indices/member_index.hpp index 0fe009c..e358988 100644 --- a/headers/meta.hpp/meta_indices/member_index.hpp +++ b/headers/meta.hpp/meta_indices/member_index.hpp @@ -17,7 +17,7 @@ namespace meta_hpp : type_{type} , name_{std::move(name)} {} - inline const member_type& member_index::get_type() const noexcept { + inline member_type member_index::get_type() const noexcept { return type_; } diff --git a/headers/meta.hpp/meta_indices/method_index.hpp b/headers/meta.hpp/meta_indices/method_index.hpp index 2150a55..26f8761 100644 --- a/headers/meta.hpp/meta_indices/method_index.hpp +++ b/headers/meta.hpp/meta_indices/method_index.hpp @@ -17,7 +17,7 @@ namespace meta_hpp : type_{type} , name_{std::move(name)} {} - inline const method_type& method_index::get_type() const noexcept { + inline method_type method_index::get_type() const noexcept { return type_; } diff --git a/headers/meta.hpp/meta_indices/variable_index.hpp b/headers/meta.hpp/meta_indices/variable_index.hpp index 838a2a4..7195c13 100644 --- a/headers/meta.hpp/meta_indices/variable_index.hpp +++ b/headers/meta.hpp/meta_indices/variable_index.hpp @@ -17,7 +17,7 @@ namespace meta_hpp : type_{type} , name_{std::move(name)} {} - inline const pointer_type& variable_index::get_type() const noexcept { + inline pointer_type variable_index::get_type() const noexcept { return type_; } diff --git a/headers/meta.hpp/meta_states.hpp b/headers/meta.hpp/meta_states.hpp index 2b47225..9b0f313 100644 --- a/headers/meta.hpp/meta_states.hpp +++ b/headers/meta.hpp/meta_states.hpp @@ -127,7 +127,7 @@ namespace meta_hpp [[nodiscard]] const argument_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const any_type& get_type() const noexcept; + [[nodiscard]] any_type get_type() const noexcept; [[nodiscard]] std::size_t get_position() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; @@ -151,7 +151,7 @@ namespace meta_hpp [[nodiscard]] const constructor_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const constructor_type& get_type() const noexcept; + [[nodiscard]] constructor_type get_type() const noexcept; template < typename... Args > [[nodiscard]] uvalue create(Args&&... args) const; @@ -187,7 +187,7 @@ namespace meta_hpp [[nodiscard]] const destructor_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const destructor_type& get_type() const noexcept; + [[nodiscard]] destructor_type get_type() const noexcept; template < typename Arg > bool destroy(Arg&& arg) const; @@ -213,7 +213,7 @@ namespace meta_hpp [[nodiscard]] const evalue_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const enum_type& get_type() const noexcept; + [[nodiscard]] enum_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; [[nodiscard]] const uvalue& get_value() const noexcept; @@ -244,7 +244,7 @@ namespace meta_hpp [[nodiscard]] const function_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const function_type& get_type() const noexcept; + [[nodiscard]] function_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; template < typename... Args > @@ -281,7 +281,7 @@ namespace meta_hpp [[nodiscard]] const member_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const member_type& get_type() const noexcept; + [[nodiscard]] member_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; template < typename Instance > @@ -330,7 +330,7 @@ namespace meta_hpp [[nodiscard]] const method_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const method_type& get_type() const noexcept; + [[nodiscard]] method_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; template < typename Instance, typename... Args > @@ -403,7 +403,7 @@ namespace meta_hpp [[nodiscard]] const variable_index& get_index() const noexcept; [[nodiscard]] const metadata_map& get_metadata() const noexcept; - [[nodiscard]] const pointer_type& get_type() const noexcept; + [[nodiscard]] pointer_type get_type() const noexcept; [[nodiscard]] const std::string& get_name() const noexcept; [[nodiscard]] uvalue get() const; diff --git a/headers/meta.hpp/meta_states/argument.hpp b/headers/meta.hpp/meta_states/argument.hpp index e367c64..909af11 100644 --- a/headers/meta.hpp/meta_states/argument.hpp +++ b/headers/meta.hpp/meta_states/argument.hpp @@ -44,7 +44,7 @@ namespace meta_hpp return state_->metadata; } - inline const any_type& argument::get_type() const noexcept { + inline any_type argument::get_type() const noexcept { return state_->index.get_type(); } diff --git a/headers/meta.hpp/meta_states/constructor.hpp b/headers/meta.hpp/meta_states/constructor.hpp index 99b7cb8..f26799e 100644 --- a/headers/meta.hpp/meta_states/constructor.hpp +++ b/headers/meta.hpp/meta_states/constructor.hpp @@ -171,7 +171,7 @@ namespace meta_hpp return state_->metadata; } - inline const constructor_type& constructor::get_type() const noexcept { + inline constructor_type constructor::get_type() const noexcept { return state_->index.get_type(); } diff --git a/headers/meta.hpp/meta_states/destructor.hpp b/headers/meta.hpp/meta_states/destructor.hpp index b5c2737..33467f8 100644 --- a/headers/meta.hpp/meta_states/destructor.hpp +++ b/headers/meta.hpp/meta_states/destructor.hpp @@ -85,7 +85,7 @@ namespace meta_hpp return state_->metadata; } - inline const destructor_type& destructor::get_type() const noexcept { + inline destructor_type destructor::get_type() const noexcept { return state_->index.get_type(); } diff --git a/headers/meta.hpp/meta_states/evalue.hpp b/headers/meta.hpp/meta_states/evalue.hpp index 663a4cb..0505f04 100644 --- a/headers/meta.hpp/meta_states/evalue.hpp +++ b/headers/meta.hpp/meta_states/evalue.hpp @@ -47,7 +47,7 @@ namespace meta_hpp return state_->metadata; } - inline const enum_type& evalue::get_type() const noexcept { + inline enum_type evalue::get_type() const noexcept { return state_->index.get_type(); } diff --git a/headers/meta.hpp/meta_states/function.hpp b/headers/meta.hpp/meta_states/function.hpp index d126c38..75c3684 100644 --- a/headers/meta.hpp/meta_states/function.hpp +++ b/headers/meta.hpp/meta_states/function.hpp @@ -151,7 +151,7 @@ namespace meta_hpp return state_->metadata; } - inline const function_type& function::get_type() const noexcept { + inline function_type function::get_type() const noexcept { return state_->index.get_type(); } diff --git a/headers/meta.hpp/meta_states/member.hpp b/headers/meta.hpp/meta_states/member.hpp index dbd8beb..5fe5402 100644 --- a/headers/meta.hpp/meta_states/member.hpp +++ b/headers/meta.hpp/meta_states/member.hpp @@ -180,7 +180,7 @@ namespace meta_hpp return state_->metadata; } - inline const member_type& member::get_type() const noexcept { + inline member_type member::get_type() const noexcept { return state_->index.get_type(); } diff --git a/headers/meta.hpp/meta_states/method.hpp b/headers/meta.hpp/meta_states/method.hpp index ca2ef46..81fc47b 100644 --- a/headers/meta.hpp/meta_states/method.hpp +++ b/headers/meta.hpp/meta_states/method.hpp @@ -165,7 +165,7 @@ namespace meta_hpp return state_->metadata; } - inline const method_type& method::get_type() const noexcept { + inline method_type method::get_type() const noexcept { return state_->index.get_type(); } diff --git a/headers/meta.hpp/meta_states/variable.hpp b/headers/meta.hpp/meta_states/variable.hpp index 0b52258..22dd123 100644 --- a/headers/meta.hpp/meta_states/variable.hpp +++ b/headers/meta.hpp/meta_states/variable.hpp @@ -129,7 +129,7 @@ namespace meta_hpp return state_->metadata; } - inline const pointer_type& variable::get_type() const noexcept { + inline pointer_type variable::get_type() const noexcept { return state_->index.get_type(); }