On Tuesday, 10 July 2018 at 11:37:25 UTC, ag0aep6g wrote:
On 07/10/2018 11:56 AM, Yuxuan Shui wrote:Possible alternatives:* struct Void {}. Takes 1 byte, not as ideal* alias Void = AliasSeq!(). Doesn't work as template argument. i.e.SomeTemplate!Void; // actually become SomeTemplate!()What about `void[0]`? It's a proper type. You can declare a field with it. Size is 0.
Nice!
