C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Achieving pragma pack(1) with typedef<unaligned>

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Mon, 8 Jun 2026 15:09:06 +0200
Short explanation: It combines reflection over the given struct and its members with std::meta::define_aggregate from P2996 to metaprogrammatically define (reify) the derived new member types for the unaligned version. For the full solution with arbitrary std::unaligned / std::optional / ..., better support for universal template parameters would probably be needed (which is in the works)

Received on 2026-06-08 13:12:28