diff --git a/iguana/ylt/reflection/member_count.hpp b/iguana/ylt/reflection/member_count.hpp index 3932c580..83783174 100644 --- a/iguana/ylt/reflection/member_count.hpp +++ b/iguana/ylt/reflection/member_count.hpp @@ -11,7 +11,10 @@ #endif #include "user_reflect_macro.hpp" - +namespace struct_pack { +template +struct compatible; +} namespace ylt::reflection { template using remove_cvref_t = std::remove_cv_t>; @@ -25,9 +28,7 @@ concept expected = requires(Type e) { e.has_value(); e.error(); requires std::is_same_v::value_type> || - requires(Type e) { - e.value(); - }; + requires(Type e) { e.value(); }; }; #else template @@ -71,9 +72,8 @@ constexpr bool optional = !expected && optional_impl::value; namespace internal { #if __cpp_concepts >= 201907L template -concept tuple_size = requires(Type tuple) { - std::tuple_size>::value; -}; +concept tuple_size = + requires(Type tuple) { std::tuple_size>::value; }; #else template struct tuple_size_impl : std::false_type {}; @@ -87,14 +87,12 @@ template constexpr bool tuple_size = tuple_size_impl::value; #endif -template -struct compatible; - template constexpr inline bool is_compatible_v = false; template -constexpr inline bool is_compatible_v> = true; +constexpr inline bool is_compatible_v> = + true; struct UniversalVectorType { template diff --git a/iguana/ylt/reflection/member_ptr.hpp b/iguana/ylt/reflection/member_ptr.hpp index fec004ec..1fa090e9 100644 --- a/iguana/ylt/reflection/member_ptr.hpp +++ b/iguana/ylt/reflection/member_ptr.hpp @@ -3,7 +3,7 @@ // modified based on: // https://github.com/getml/reflect-cpp/blob/main/include/rfl/internal/bind_fake_object_to_tuple.hpp -// thanks for alxn4's greate idea! +// thanks for alxn4's great idea! namespace ylt::reflection { namespace internal {