August 07, 2018 Re: GC and void[N] in struct | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | On Monday, 6 August 2018 at 19:43:17 UTC, Steven Schveighoffer wrote:
> On 8/6/18 2:59 PM, vit wrote:
>> struct ExprImpl(Ts...){
>> enum N = max(staticMap!(sizeOf, Ts));
>
> This is clever!
No need to be clever though - we've got std.traits.Largest for exactly this kind of purpose.
--
Simen
|
Copyright © 1999-2021 by the D Language Foundation