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.

Reply via email to