Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion include/ylt/struct_pack/reflection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,15 @@ constexpr bool deserialize_view = deserialize_view_impl<Type>::value;
template <typename... args>
constexpr inline bool is_std_vector_v<std::vector<args...>> = true;

template <typename Type>
constexpr inline bool is_std_array_v = false;

template <typename T, std::size_t N>
constexpr inline bool is_std_array_v<std::array<T, N>> = true;

template <typename Type>
constexpr bool continuous_container =
string<Type> || (container<Type> && (is_std_vector_v<Type> || is_std_basic_string_v<Type>));
string<Type> || (container<Type> && (is_std_vector_v<Type> || is_std_basic_string_v<Type> || is_std_array_v<Type>));
#endif

#if __cpp_concepts >= 201907L
Expand Down
Loading