Skip to content

Commit

Permalink
[message] messages no longer need to be standard layout
Browse files Browse the repository at this point in the history
  • Loading branch information
harrand committed Mar 18, 2024
1 parent 4c07009 commit 6f79a5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tz/core/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ namespace tz
template<typename T>
concept message = requires(T a)
{
requires std::is_standard_layout_v<T>;
// note: this used to be only standard layout types. but that's really inflexible (i also think its an arbitrary requirement. no storing strings or source_locations in your messages if you do that!)
requires true;
};

template<typename R, typename T>
Expand Down

0 comments on commit 6f79a5d

Please sign in to comment.