Y
Hacker News
new
|
ask
|
show
|
jobs
by
tpolzer
703 days ago
A std::monostate member will still have non zero size, because it needs a unique address.
See
https://en.cppreference.com/w/cpp/language/ebo
1 comments
jandrewrogers
703 days ago
...except if you use the standard [[no_unique_address]] attribute.
link