MCPcopy Create free account
hub / github.com/codeinred/tuplet / struct_with_empty

Class struct_with_empty

test/test_alignment.cpp:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49struct empty {};
50
51struct struct_with_empty {
52 alignas(sizeof(int) * 2) int a;
53 TUPLET_NO_UNIQUE_ADDRESS empty b;
54 int c;
55};
56
57#if TUPLET_HAS_NO_UNIQUE_ADDRESS && !(defined _MSC_VER)
58static_assert(offsetof(struct_with_empty, b) == 0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected