Skip to content

Commit

Permalink
#2045: util: force use variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Jan 17, 2023
1 parent 9991c96 commit 2490172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vt/utils/adt/union.h
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ struct AlignedCharUnion : UnionCopy<T, void, Ts...> {

template <typename U>
void staticAssertCorrectness() const {
detail::AllUnique<T, Ts...>{};
vt_force_use(detail::AllUnique<T, Ts...>{});
static_assert(
detail::MustBe<U, T, Ts...>::is_same, "Must be the valid type in union"
);
Expand Down

0 comments on commit 2490172

Please sign in to comment.