From b0adff1c87e34059ea1a2d4a2f5981dc804081f2 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 19 Nov 2023 09:34:27 +1000 Subject: [PATCH] endian: force alignment with underlying type in `value` --- endian.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endian.hpp b/endian.hpp index f86e108d..c726d427 100644 --- a/endian.hpp +++ b/endian.hpp @@ -217,7 +217,7 @@ namespace cruft { namespace endian { template - struct value { + struct alignas(RawT) value { constexpr RawT native (void) const { return convert (raw); } operator RawT () const