Skip to content

Commit

Permalink
#821: util: add missing static assertion of correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Jun 8, 2020
1 parent e7e8585 commit 0742906
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vt/utils/adt/union.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ struct AlignedCharUnion {
*/
template <typename U>
bool is() {
staticAssertCorrectness<U>();
return which_ == detail::Which<U, T, Ts...>::value;
}

Expand Down

0 comments on commit 0742906

Please sign in to comment.