From 6f79a5d27482dea7d6337adedb8815f28dc57b59 Mon Sep 17 00:00:00 2001 From: harrand Date: Mon, 18 Mar 2024 04:04:27 +0000 Subject: [PATCH] [message] messages no longer need to be standard layout --- src/tz/core/types.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tz/core/types.hpp b/src/tz/core/types.hpp index e764745c02..7c79d5d310 100644 --- a/src/tz/core/types.hpp +++ b/src/tz/core/types.hpp @@ -120,7 +120,8 @@ namespace tz template concept message = requires(T a) { - requires std::is_standard_layout_v; + // 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