Skip to content

Commit

Permalink
swap.hpp - gcc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
K0lb3 committed Sep 19, 2024
1 parent 569420a commit c18d99b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions UnityPyBoost/swap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#endif
#endif

template<typename T>
template <typename T>
inline void swap_any_inplace(T *x)
{
if constexpr (sizeof(T) == 1)
Expand All @@ -72,6 +72,7 @@ inline void swap_any_inplace(T *x)
}
else
{
static_assert(false, "Swap not implemented for this size");
// gcc is tripping and somehow reaching this at compile time
assert(false, "Swap not implemented for this size");
}
}

0 comments on commit c18d99b

Please sign in to comment.