Skip to content

Commit

Permalink
Update struct_pack_impl.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
982945902 authored Jun 29, 2023
1 parent f1b9722 commit 8adf9dc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/struct_pack/struct_pack/struct_pack_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,14 @@ consteval type_id get_type_id() {
else if constexpr (std::is_integral_v<T>) {
return get_integral_type<T>();
}
#if __GNUC__ && __clang__
else if constexpr (std::is_same_v<__int128, T>) {
return type_id::int128_t;
}
else if constexpr (std::is_same_v<unsigned __int128, T>) {
return type_id::uint128_t;
}
#endif
else if constexpr (std::is_floating_point_v<T>) {
return get_floating_point_type<T>();
}
Expand Down

0 comments on commit 8adf9dc

Please sign in to comment.