Skip to content

Commit

Permalink
#2154: Add static_assert for checking whether TimeType is byte_copyable
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Dec 19, 2023
1 parent dd08c16 commit ca4de2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vt/timing/timing_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ struct TimeTypeWrapper {
std::chrono::duration<TimeTypeInternal> time_;
};

static_assert(std::is_trivially_copyable_v<TimeTypeWrapper>, "TimeTypeWrapper must be trivially_copyable");

using TimeType = TimeTypeWrapper;

} /* end namespace vt */
Expand Down

0 comments on commit ca4de2e

Please sign in to comment.