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 c6836d6 commit 89081b6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/struct_pack/struct_pack/struct_pack_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,15 @@ consteval type_id get_integral_type() {
"sizeof(bool)!=1, which is not supported.");
return type_id::bool_t;
}
#if __GNUC__ || __clang__
//-std=gnu++20
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 {
/*
* Due to different data model,
Expand Down Expand Up @@ -522,6 +531,7 @@ consteval type_id get_type_id() {
return get_integral_type<T>();
}
#if __GNUC__ || __clang__
//-std=c++20
else if constexpr (std::is_same_v<__int128, T>) {
return type_id::int128_t;
}
Expand Down

0 comments on commit 89081b6

Please sign in to comment.