On Friday, 20 January 2017 at 09:12:04 UTC, Dukc wrote: > template EnumToFlags(E) if(is(E == enum)) > { > import std.traits, std.typecons, std.string; > > //... > } I think that typecons import was needless, you could try removing it...