Re: Using std traits
On Thursday, 25 January 2018 at 19:49:05 UTC, JN wrote: if (!hasUDA!(member, "noserialize")) Nevermind, I get it now, member is only the field name, not a 'reference', changed it to: if (!hasUDA!(mixin(T.stringof ~ "." ~ member), "noserialize")) and works now
Re: Using std traits
On 01/25/2018 11:49 AM, JN wrote: foreach (i, member; FieldNameTuple!T) { if (!hasUDA!(member, "noserialize")) { writeln(member); } 'member' is a string local variable, which does not have that UDA. You need to get the