Getting the size of a type tuple

David Zhang straivers98 at gmail.com
Thu Sep 21 19:55:09 UTC 2017


On Thursday, 21 September 2017 at 19:49:14 UTC, ag0aep6g wrote:
> I don't have a one-liner, but here are some other solutions 
> that might be interesting. None of them is particularly pretty, 
> though.
>
> 1) Recursive template: <snip>
>
> 2) Using the std library: <snip>
>
> 3) Declaring a packed struct in a function literal that gets 
> immediately called: <snip>

I think the recursive one looks best, but I agree. None of them 
look particularly good.


More information about the Digitalmars-d-learn mailing list