GC and void[N] in struct

Simen Kjærås simen.kjaras at gmail.com
Tue Aug 7 06:41:20 UTC 2018


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


More information about the Digitalmars-d-learn mailing list