C++ Logo

std-proposals

Advanced search

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

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 08 Jun 2026 09:02:14 -0700
On Sunday, 7 June 2026 13:50:11 Pacific Daylight Time Frederick Virchanza
Gotham via Std-Proposals wrote:
> As you guessed, the struct K will be the struct J but with every
> member variable type enclosed in unaligned<>.

Then this can be achieved with Reflection. We don't need a new core language
feature.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel Data Center - Platform & Sys. Eng.

Received on 2026-06-08 16:02:26