Skip to content

Commit

Permalink
remove comment about memset being UB here
Browse files Browse the repository at this point in the history
  • Loading branch information
jiixyj committed Oct 15, 2023
1 parent 83488c8 commit 7b81fb5
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ template <int c>
struct tail_clobberer {
constexpr tail_clobberer() {
if (!std::is_constant_evaluated()) {
// This `memset` might actually be UB (?) but suffices to reproduce bugs
// related to the "has value" flag.
std::memset(this, c, sizeof(*this));
}
}
Expand Down

0 comments on commit 7b81fb5

Please sign in to comment.