Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Aug 1, 2023
1 parent cc7b90f commit b974dcc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/ylt/struct_pack/reflection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,10 @@ template <typename T, typename = void>
...);
}
static constexpr bool solve() {
if constexpr (is_compatible_v<T> || is_trivial_view_v<T>) {
if constexpr (std::is_same_v<T,std::monostate>) {
return true;
}
else if constexpr (is_compatible_v<T> || is_trivial_view_v<T>) {
return ignore_compatible_field;
}
else if constexpr (std::is_enum_v<T> || std::is_fundamental_v<T>
Expand Down

0 comments on commit b974dcc

Please sign in to comment.