what's the use of empty structs in C-style languages ?

Inkrementator invalid at invalid.org
Tue Dec 3 05:25:35 UTC 2024


On Monday, 2 December 2024 at 17:03:22 UTC, Basile B. wrote:
> Big question is what is the problem if we specify that empty 
> struct is an error ?

It's pretty useful in combination with `std.sumtype`.


More information about the Digitalmars-d-learn mailing list