C++20 introduced the [[no_unique_address]] attribute that can be used to annotate non-static data members.
The attribute allows the compiler to optimize empty members marked with this attribute to take up no space.
Compiler Explorer link: https://compiler-explorer.com/z/4Y9dK95jf