diff --git a/headers/meta.hpp/meta_detail/type_traits/array_traits.hpp b/headers/meta.hpp/meta_detail/type_traits/array_traits.hpp index a5439bf..0ff6aa4 100644 --- a/headers/meta.hpp/meta_detail/type_traits/array_traits.hpp +++ b/headers/meta.hpp/meta_detail/type_traits/array_traits.hpp @@ -16,6 +16,7 @@ namespace meta_hpp::detail }; ENUM_HPP_OPERATORS_DECL(array_flags) + using array_bitflags = bitflags; } namespace meta_hpp::detail @@ -26,8 +27,8 @@ namespace meta_hpp::detail using data_type = std::remove_extent_t; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { - bitflags flags; + [[nodiscard]] static constexpr array_bitflags make_flags() noexcept { + array_bitflags flags{}; if constexpr ( std::is_bounded_array_v ) { flags.set(array_flags::is_bounded); diff --git a/headers/meta.hpp/meta_detail/type_traits/class_traits.hpp b/headers/meta.hpp/meta_detail/type_traits/class_traits.hpp index d5e8591..b97a0da 100644 --- a/headers/meta.hpp/meta_detail/type_traits/class_traits.hpp +++ b/headers/meta.hpp/meta_detail/type_traits/class_traits.hpp @@ -19,6 +19,7 @@ namespace meta_hpp::detail }; ENUM_HPP_OPERATORS_DECL(class_flags) + using class_bitflags = bitflags; } namespace meta_hpp::detail @@ -31,7 +32,7 @@ namespace meta_hpp::detail using argument_types = type_list<>; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr class_bitflags make_flags() noexcept { return {}; } }; @@ -42,7 +43,7 @@ namespace meta_hpp::detail using argument_types = type_list; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr class_bitflags make_flags() noexcept { return class_flags::is_template_instantiation; } }; @@ -52,8 +53,8 @@ namespace meta_hpp::detail struct class_traits : impl::class_traits_base { static constexpr std::size_t size{sizeof(Class)}; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { - bitflags flags; + [[nodiscard]] static constexpr class_bitflags make_flags() noexcept { + class_bitflags flags{}; if constexpr ( std::is_empty_v ) { flags.set(class_flags::is_empty); diff --git a/headers/meta.hpp/meta_detail/type_traits/ctor_traits.hpp b/headers/meta.hpp/meta_detail/type_traits/ctor_traits.hpp index e910274..9c8eedd 100644 --- a/headers/meta.hpp/meta_detail/type_traits/ctor_traits.hpp +++ b/headers/meta.hpp/meta_detail/type_traits/ctor_traits.hpp @@ -15,6 +15,7 @@ namespace meta_hpp::detail }; ENUM_HPP_OPERATORS_DECL(ctor_flags) + using ctor_bitflags = bitflags; } namespace meta_hpp::detail @@ -26,8 +27,8 @@ namespace meta_hpp::detail using class_type = Class; using argument_types = type_list; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { - bitflags flags; + [[nodiscard]] static constexpr ctor_bitflags make_flags() noexcept { + ctor_bitflags flags{}; if constexpr ( std::is_nothrow_constructible_v ) { flags.set(ctor_flags::is_noexcept); diff --git a/headers/meta.hpp/meta_detail/type_traits/dtor_traits.hpp b/headers/meta.hpp/meta_detail/type_traits/dtor_traits.hpp index 8037180..759cdd5 100644 --- a/headers/meta.hpp/meta_detail/type_traits/dtor_traits.hpp +++ b/headers/meta.hpp/meta_detail/type_traits/dtor_traits.hpp @@ -15,6 +15,7 @@ namespace meta_hpp::detail }; ENUM_HPP_OPERATORS_DECL(dtor_flags) + using dtor_bitflags = bitflags; } namespace meta_hpp::detail @@ -23,8 +24,8 @@ namespace meta_hpp::detail struct dtor_traits { using class_type = Class; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { - bitflags flags; + [[nodiscard]] static constexpr dtor_bitflags make_flags() noexcept { + dtor_bitflags flags{}; if constexpr ( std::is_nothrow_destructible_v ) { flags.set(dtor_flags::is_noexcept); diff --git a/headers/meta.hpp/meta_detail/type_traits/enum_traits.hpp b/headers/meta.hpp/meta_detail/type_traits/enum_traits.hpp index f347d8f..ed72a6a 100644 --- a/headers/meta.hpp/meta_detail/type_traits/enum_traits.hpp +++ b/headers/meta.hpp/meta_detail/type_traits/enum_traits.hpp @@ -15,6 +15,7 @@ namespace meta_hpp::detail }; ENUM_HPP_OPERATORS_DECL(enum_flags) + using enum_bitflags = bitflags; } namespace meta_hpp::detail @@ -23,8 +24,8 @@ namespace meta_hpp::detail struct enum_traits { using underlying_type = std::underlying_type_t; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { - bitflags flags; + [[nodiscard]] static constexpr enum_bitflags make_flags() noexcept { + enum_bitflags flags{}; if constexpr ( !std::is_convertible_v ) { flags.set(enum_flags::is_scoped); diff --git a/headers/meta.hpp/meta_detail/type_traits/function_traits.hpp b/headers/meta.hpp/meta_detail/type_traits/function_traits.hpp index e82fb71..15b3046 100644 --- a/headers/meta.hpp/meta_detail/type_traits/function_traits.hpp +++ b/headers/meta.hpp/meta_detail/type_traits/function_traits.hpp @@ -15,6 +15,7 @@ namespace meta_hpp::detail }; ENUM_HPP_OPERATORS_DECL(function_flags) + using function_bitflags = bitflags; } namespace meta_hpp::detail @@ -29,14 +30,14 @@ namespace meta_hpp::detail using return_type = R; using argument_types = type_list; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr function_bitflags make_flags() noexcept { return {}; } }; template < typename R, typename... Args > struct function_traits : function_traits { - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr function_bitflags make_flags() noexcept { return function_flags::is_noexcept; } }; diff --git a/headers/meta.hpp/meta_detail/type_traits/member_traits.hpp b/headers/meta.hpp/meta_detail/type_traits/member_traits.hpp index adaf932..e3bac94 100644 --- a/headers/meta.hpp/meta_detail/type_traits/member_traits.hpp +++ b/headers/meta.hpp/meta_detail/type_traits/member_traits.hpp @@ -15,6 +15,7 @@ namespace meta_hpp::detail }; ENUM_HPP_OPERATORS_DECL(member_flags) + using member_bitflags = bitflags; } namespace meta_hpp::detail @@ -27,8 +28,8 @@ namespace meta_hpp::detail using class_type = C; using value_type = V; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { - bitflags flags; + [[nodiscard]] static constexpr member_bitflags make_flags() noexcept { + member_bitflags flags{}; if constexpr ( std::is_const_v ) { flags.set(member_flags::is_readonly); diff --git a/headers/meta.hpp/meta_detail/type_traits/method_traits.hpp b/headers/meta.hpp/meta_detail/type_traits/method_traits.hpp index 75384d5..b434fba 100644 --- a/headers/meta.hpp/meta_detail/type_traits/method_traits.hpp +++ b/headers/meta.hpp/meta_detail/type_traits/method_traits.hpp @@ -18,6 +18,7 @@ namespace meta_hpp::detail }; ENUM_HPP_OPERATORS_DECL(method_flags) + using method_bitflags = bitflags; } namespace meta_hpp::detail @@ -34,7 +35,7 @@ namespace meta_hpp::detail using qualified_type = C; using argument_types = type_list; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr method_bitflags make_flags() noexcept { return {}; } }; @@ -43,7 +44,7 @@ namespace meta_hpp::detail struct method_traits : method_traits { using qualified_type = const C; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr method_bitflags make_flags() noexcept { return method_flags::is_const; } }; @@ -52,7 +53,7 @@ namespace meta_hpp::detail struct method_traits : method_traits { using qualified_type = C; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr method_bitflags make_flags() noexcept { return method_flags::is_noexcept; } }; @@ -61,7 +62,7 @@ namespace meta_hpp::detail struct method_traits : method_traits { using qualified_type = const C; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr method_bitflags make_flags() noexcept { return method_flags::is_const | method_flags::is_noexcept; } }; @@ -70,7 +71,7 @@ namespace meta_hpp::detail struct method_traits : method_traits { using qualified_type = C&; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr method_bitflags make_flags() noexcept { return method_flags::is_lvalue_qualified; } }; @@ -79,7 +80,7 @@ namespace meta_hpp::detail struct method_traits : method_traits { using qualified_type = C&; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr method_bitflags make_flags() noexcept { return method_flags::is_noexcept | method_flags::is_lvalue_qualified; } }; @@ -88,7 +89,7 @@ namespace meta_hpp::detail struct method_traits : method_traits { using qualified_type = const C&; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr method_bitflags make_flags() noexcept { return method_flags::is_const | method_flags::is_lvalue_qualified; } }; @@ -97,7 +98,7 @@ namespace meta_hpp::detail struct method_traits : method_traits { using qualified_type = const C&; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr method_bitflags make_flags() noexcept { return method_flags::is_const | method_flags::is_noexcept | method_flags::is_lvalue_qualified; } }; @@ -106,7 +107,7 @@ namespace meta_hpp::detail struct method_traits : method_traits { using qualified_type = C&&; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr method_bitflags make_flags() noexcept { return method_flags::is_rvalue_qualified; } }; @@ -115,7 +116,7 @@ namespace meta_hpp::detail struct method_traits : method_traits { using qualified_type = C&&; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr method_bitflags make_flags() noexcept { return method_flags::is_noexcept | method_flags::is_rvalue_qualified; } }; @@ -124,7 +125,7 @@ namespace meta_hpp::detail struct method_traits : method_traits { using qualified_type = const C&&; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr method_bitflags make_flags() noexcept { return method_flags::is_const | method_flags::is_rvalue_qualified; } }; @@ -133,7 +134,7 @@ namespace meta_hpp::detail struct method_traits : method_traits { using qualified_type = const C&&; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { + [[nodiscard]] static constexpr method_bitflags make_flags() noexcept { return method_flags::is_const | method_flags::is_noexcept | method_flags::is_rvalue_qualified; } }; diff --git a/headers/meta.hpp/meta_detail/type_traits/number_traits.hpp b/headers/meta.hpp/meta_detail/type_traits/number_traits.hpp index c438770..4126161 100644 --- a/headers/meta.hpp/meta_detail/type_traits/number_traits.hpp +++ b/headers/meta.hpp/meta_detail/type_traits/number_traits.hpp @@ -18,6 +18,7 @@ namespace meta_hpp::detail }; ENUM_HPP_OPERATORS_DECL(number_flags) + using number_bitflags = bitflags; } namespace meta_hpp::detail @@ -26,8 +27,8 @@ namespace meta_hpp::detail struct number_traits { static constexpr std::size_t size{sizeof(Number)}; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { - bitflags flags; + [[nodiscard]] static constexpr number_bitflags make_flags() noexcept { + number_bitflags flags{}; if constexpr ( std::is_signed_v ) { flags.set(number_flags::is_signed); diff --git a/headers/meta.hpp/meta_detail/type_traits/pointer_traits.hpp b/headers/meta.hpp/meta_detail/type_traits/pointer_traits.hpp index beebc8a..43be453 100644 --- a/headers/meta.hpp/meta_detail/type_traits/pointer_traits.hpp +++ b/headers/meta.hpp/meta_detail/type_traits/pointer_traits.hpp @@ -15,6 +15,7 @@ namespace meta_hpp::detail }; ENUM_HPP_OPERATORS_DECL(pointer_flags) + using pointer_bitflags = bitflags; } namespace meta_hpp::detail @@ -23,8 +24,8 @@ namespace meta_hpp::detail struct pointer_traits { using data_type = std::remove_pointer_t; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { - bitflags flags; + [[nodiscard]] static constexpr pointer_bitflags make_flags() noexcept { + pointer_bitflags flags{}; if constexpr ( std::is_const_v ) { flags.set(pointer_flags::is_readonly); diff --git a/headers/meta.hpp/meta_detail/type_traits/reference_traits.hpp b/headers/meta.hpp/meta_detail/type_traits/reference_traits.hpp index efd179e..4acf314 100644 --- a/headers/meta.hpp/meta_detail/type_traits/reference_traits.hpp +++ b/headers/meta.hpp/meta_detail/type_traits/reference_traits.hpp @@ -17,6 +17,7 @@ namespace meta_hpp::detail }; ENUM_HPP_OPERATORS_DECL(reference_flags) + using reference_bitflags = bitflags; } namespace meta_hpp::detail @@ -25,8 +26,8 @@ namespace meta_hpp::detail struct reference_traits { using data_type = std::remove_reference_t; - [[nodiscard]] static constexpr bitflags make_flags() noexcept { - bitflags flags; + [[nodiscard]] static constexpr reference_bitflags make_flags() noexcept { + reference_bitflags flags{}; if constexpr ( std::is_const_v ) { flags.set(reference_flags::is_readonly); diff --git a/headers/meta.hpp/meta_types.hpp b/headers/meta.hpp/meta_types.hpp index c1e38b0..675bfaf 100644 --- a/headers/meta.hpp/meta_types.hpp +++ b/headers/meta.hpp/meta_types.hpp @@ -25,16 +25,37 @@ namespace meta_hpp { using array_flags = detail::array_flags; + using array_bitflags = detail::array_bitflags; + using class_flags = detail::class_flags; + using class_bitflags = detail::class_bitflags; + using ctor_flags = detail::ctor_flags; + using ctor_bitflags = detail::ctor_bitflags; + using dtor_flags = detail::dtor_flags; + using dtor_bitflags = detail::dtor_bitflags; + using enum_flags = detail::enum_flags; + using enum_bitflags = detail::enum_bitflags; + using function_flags = detail::function_flags; + using function_bitflags = detail::function_bitflags; + using member_flags = detail::member_flags; + using member_bitflags = detail::member_bitflags; + using method_flags = detail::method_flags; + using method_bitflags = detail::method_bitflags; + using number_flags = detail::number_flags; + using number_bitflags = detail::number_bitflags; + using pointer_flags = detail::pointer_flags; + using pointer_bitflags = detail::pointer_bitflags; + using reference_flags = detail::reference_flags; + using reference_bitflags = detail::reference_bitflags; } namespace meta_hpp @@ -104,7 +125,7 @@ namespace meta_hpp [[nodiscard]] explicit operator bool() const noexcept; [[nodiscard]] type_id get_id() const noexcept; - [[nodiscard]] bitflags get_flags() const noexcept; + [[nodiscard]] array_bitflags get_flags() const noexcept; [[nodiscard]] std::size_t get_extent() const noexcept; [[nodiscard]] any_type get_data_type() const noexcept; @@ -122,7 +143,7 @@ namespace meta_hpp [[nodiscard]] explicit operator bool() const noexcept; [[nodiscard]] type_id get_id() const noexcept; - [[nodiscard]] bitflags get_flags() const noexcept; + [[nodiscard]] class_bitflags get_flags() const noexcept; [[nodiscard]] std::size_t get_size() const noexcept; @@ -188,7 +209,7 @@ namespace meta_hpp [[nodiscard]] explicit operator bool() const noexcept; [[nodiscard]] type_id get_id() const noexcept; - [[nodiscard]] bitflags get_flags() const noexcept; + [[nodiscard]] ctor_bitflags get_flags() const noexcept; [[nodiscard]] std::size_t get_arity() const noexcept; [[nodiscard]] any_type get_class_type() const noexcept; @@ -208,7 +229,7 @@ namespace meta_hpp [[nodiscard]] explicit operator bool() const noexcept; [[nodiscard]] type_id get_id() const noexcept; - [[nodiscard]] bitflags get_flags() const noexcept; + [[nodiscard]] dtor_bitflags get_flags() const noexcept; [[nodiscard]] any_type get_class_type() const noexcept; private: @@ -225,7 +246,7 @@ namespace meta_hpp [[nodiscard]] explicit operator bool() const noexcept; [[nodiscard]] type_id get_id() const noexcept; - [[nodiscard]] bitflags get_flags() const noexcept; + [[nodiscard]] enum_bitflags get_flags() const noexcept; [[nodiscard]] number_type get_underlying_type() const noexcept; @@ -250,7 +271,7 @@ namespace meta_hpp [[nodiscard]] explicit operator bool() const noexcept; [[nodiscard]] type_id get_id() const noexcept; - [[nodiscard]] bitflags get_flags() const noexcept; + [[nodiscard]] function_bitflags get_flags() const noexcept; [[nodiscard]] std::size_t get_arity() const noexcept; [[nodiscard]] any_type get_return_type() const noexcept; @@ -270,7 +291,7 @@ namespace meta_hpp [[nodiscard]] explicit operator bool() const noexcept; [[nodiscard]] type_id get_id() const noexcept; - [[nodiscard]] bitflags get_flags() const noexcept; + [[nodiscard]] member_bitflags get_flags() const noexcept; [[nodiscard]] class_type get_owner_type() const noexcept; [[nodiscard]] any_type get_value_type() const noexcept; @@ -288,7 +309,7 @@ namespace meta_hpp [[nodiscard]] explicit operator bool() const noexcept; [[nodiscard]] type_id get_id() const noexcept; - [[nodiscard]] bitflags get_flags() const noexcept; + [[nodiscard]] method_bitflags get_flags() const noexcept; [[nodiscard]] std::size_t get_arity() const noexcept; [[nodiscard]] class_type get_owner_type() const noexcept; @@ -323,7 +344,7 @@ namespace meta_hpp [[nodiscard]] explicit operator bool() const noexcept; [[nodiscard]] type_id get_id() const noexcept; - [[nodiscard]] bitflags get_flags() const noexcept; + [[nodiscard]] number_bitflags get_flags() const noexcept; [[nodiscard]] std::size_t get_size() const noexcept; private: @@ -340,7 +361,7 @@ namespace meta_hpp [[nodiscard]] explicit operator bool() const noexcept; [[nodiscard]] type_id get_id() const noexcept; - [[nodiscard]] bitflags get_flags() const noexcept; + [[nodiscard]] pointer_bitflags get_flags() const noexcept; [[nodiscard]] any_type get_data_type() const noexcept; private: @@ -357,7 +378,7 @@ namespace meta_hpp [[nodiscard]] explicit operator bool() const noexcept; [[nodiscard]] type_id get_id() const noexcept; - [[nodiscard]] bitflags get_flags() const noexcept; + [[nodiscard]] reference_bitflags get_flags() const noexcept; [[nodiscard]] any_type get_data_type() const noexcept; private: @@ -426,7 +447,7 @@ namespace meta_hpp::detail }; struct array_type_data final : type_data_base { - const bitflags flags; + const array_bitflags flags; const std::size_t extent; const any_type data_type; @@ -435,7 +456,7 @@ namespace meta_hpp::detail }; struct class_type_data final : type_data_base { - const bitflags flags; + const class_bitflags flags; const std::size_t size; const std::vector argument_types; @@ -460,7 +481,7 @@ namespace meta_hpp::detail }; struct ctor_type_data final : type_data_base { - const bitflags flags; + const ctor_bitflags flags; const any_type class_type; const std::vector argument_types; @@ -469,7 +490,7 @@ namespace meta_hpp::detail }; struct dtor_type_data final : type_data_base { - const bitflags flags; + const dtor_bitflags flags; const any_type class_type; template < class_kind Class > @@ -477,7 +498,7 @@ namespace meta_hpp::detail }; struct enum_type_data final : type_data_base { - const bitflags flags; + const enum_bitflags flags; const number_type underlying_type; evalue_map evalues; @@ -487,7 +508,7 @@ namespace meta_hpp::detail }; struct function_type_data final : type_data_base { - const bitflags flags; + const function_bitflags flags; const any_type return_type; const std::vector argument_types; @@ -496,7 +517,7 @@ namespace meta_hpp::detail }; struct member_type_data final : type_data_base { - const bitflags flags; + const member_bitflags flags; const class_type owner_type; const any_type value_type; @@ -505,7 +526,7 @@ namespace meta_hpp::detail }; struct method_type_data final : type_data_base { - const bitflags flags; + const method_bitflags flags; const class_type owner_type; const any_type return_type; const std::vector argument_types; @@ -520,7 +541,7 @@ namespace meta_hpp::detail }; struct number_type_data final : type_data_base { - const bitflags flags; + const number_bitflags flags; const std::size_t size; template < number_kind Number > @@ -528,7 +549,7 @@ namespace meta_hpp::detail }; struct pointer_type_data final : type_data_base { - const bitflags flags; + const pointer_bitflags flags; const any_type data_type; template < pointer_kind Pointer > @@ -536,7 +557,7 @@ namespace meta_hpp::detail }; struct reference_type_data final : type_data_base { - const bitflags flags; + const reference_bitflags flags; const any_type data_type; template < reference_kind Reference > diff --git a/headers/meta.hpp/meta_types/array_type.hpp b/headers/meta.hpp/meta_types/array_type.hpp index 0fa628c..dbf0836 100644 --- a/headers/meta.hpp/meta_types/array_type.hpp +++ b/headers/meta.hpp/meta_types/array_type.hpp @@ -43,7 +43,7 @@ namespace meta_hpp return data_->id; } - inline bitflags array_type::get_flags() const noexcept { + inline array_bitflags array_type::get_flags() const noexcept { return data_->flags; } diff --git a/headers/meta.hpp/meta_types/class_type.hpp b/headers/meta.hpp/meta_types/class_type.hpp index f9a0f12..d9c5740 100644 --- a/headers/meta.hpp/meta_types/class_type.hpp +++ b/headers/meta.hpp/meta_types/class_type.hpp @@ -49,7 +49,7 @@ namespace meta_hpp return data_->id; } - inline bitflags class_type::get_flags() const noexcept { + inline class_bitflags class_type::get_flags() const noexcept { return data_->flags; } diff --git a/headers/meta.hpp/meta_types/ctor_type.hpp b/headers/meta.hpp/meta_types/ctor_type.hpp index b719b58..c08ea0a 100644 --- a/headers/meta.hpp/meta_types/ctor_type.hpp +++ b/headers/meta.hpp/meta_types/ctor_type.hpp @@ -43,7 +43,7 @@ namespace meta_hpp return data_->id; } - inline bitflags ctor_type::get_flags() const noexcept { + inline ctor_bitflags ctor_type::get_flags() const noexcept { return data_->flags; } diff --git a/headers/meta.hpp/meta_types/dtor_type.hpp b/headers/meta.hpp/meta_types/dtor_type.hpp index f24413c..d0dbc02 100644 --- a/headers/meta.hpp/meta_types/dtor_type.hpp +++ b/headers/meta.hpp/meta_types/dtor_type.hpp @@ -42,7 +42,7 @@ namespace meta_hpp return data_->id; } - inline bitflags dtor_type::get_flags() const noexcept { + inline dtor_bitflags dtor_type::get_flags() const noexcept { return data_->flags; } diff --git a/headers/meta.hpp/meta_types/enum_type.hpp b/headers/meta.hpp/meta_types/enum_type.hpp index db20134..d515d9f 100644 --- a/headers/meta.hpp/meta_types/enum_type.hpp +++ b/headers/meta.hpp/meta_types/enum_type.hpp @@ -45,7 +45,7 @@ namespace meta_hpp return data_->id; } - inline bitflags enum_type::get_flags() const noexcept { + inline enum_bitflags enum_type::get_flags() const noexcept { return data_->flags; } diff --git a/headers/meta.hpp/meta_types/function_type.hpp b/headers/meta.hpp/meta_types/function_type.hpp index 551c4a4..52fb118 100644 --- a/headers/meta.hpp/meta_types/function_type.hpp +++ b/headers/meta.hpp/meta_types/function_type.hpp @@ -43,7 +43,7 @@ namespace meta_hpp return data_->id; } - inline bitflags function_type::get_flags() const noexcept { + inline function_bitflags function_type::get_flags() const noexcept { return data_->flags; } diff --git a/headers/meta.hpp/meta_types/member_type.hpp b/headers/meta.hpp/meta_types/member_type.hpp index 60964fb..2ca258d 100644 --- a/headers/meta.hpp/meta_types/member_type.hpp +++ b/headers/meta.hpp/meta_types/member_type.hpp @@ -43,7 +43,7 @@ namespace meta_hpp return data_->id; } - inline bitflags member_type::get_flags() const noexcept { + inline member_bitflags member_type::get_flags() const noexcept { return data_->flags; } diff --git a/headers/meta.hpp/meta_types/method_type.hpp b/headers/meta.hpp/meta_types/method_type.hpp index 8e97769..2e8e193 100644 --- a/headers/meta.hpp/meta_types/method_type.hpp +++ b/headers/meta.hpp/meta_types/method_type.hpp @@ -44,7 +44,7 @@ namespace meta_hpp return data_->id; } - inline bitflags method_type::get_flags() const noexcept { + inline method_bitflags method_type::get_flags() const noexcept { return data_->flags; } diff --git a/headers/meta.hpp/meta_types/number_type.hpp b/headers/meta.hpp/meta_types/number_type.hpp index cbf65b2..463f3ef 100644 --- a/headers/meta.hpp/meta_types/number_type.hpp +++ b/headers/meta.hpp/meta_types/number_type.hpp @@ -41,7 +41,7 @@ namespace meta_hpp return data_->id; } - inline bitflags number_type::get_flags() const noexcept { + inline number_bitflags number_type::get_flags() const noexcept { return data_->flags; } diff --git a/headers/meta.hpp/meta_types/pointer_type.hpp b/headers/meta.hpp/meta_types/pointer_type.hpp index 485f227..e6c178d 100644 --- a/headers/meta.hpp/meta_types/pointer_type.hpp +++ b/headers/meta.hpp/meta_types/pointer_type.hpp @@ -42,7 +42,7 @@ namespace meta_hpp return data_->id; } - inline bitflags pointer_type::get_flags() const noexcept { + inline pointer_bitflags pointer_type::get_flags() const noexcept { return data_->flags; } diff --git a/headers/meta.hpp/meta_types/reference_type.hpp b/headers/meta.hpp/meta_types/reference_type.hpp index aed33d1..e4e3cde 100644 --- a/headers/meta.hpp/meta_types/reference_type.hpp +++ b/headers/meta.hpp/meta_types/reference_type.hpp @@ -42,7 +42,7 @@ namespace meta_hpp return data_->id; } - inline bitflags reference_type::get_flags() const noexcept { + inline reference_bitflags reference_type::get_flags() const noexcept { return data_->flags; }