TIL you can make a C++ object smaller by adding a field(twitter.com)23 points·by tbabb·5 lat temu·2 commentstwitter.comTIL you can make a C++ object smaller by adding a fieldhttps://twitter.com/tr_babb/status/13814850099413975082 commentsPost comment[–]junippor·5 lat temureplyCue HN on what a horrible language C++ is, and how soon enough everyone will be using Rust instead.[–]Olipro·5 lat temureply`[[no_unique_address]]` in C++20 should also resolve this and permit a zero-size object.