https://d.puremagic.com/issues/show_bug.cgi?id=12489
--- Comment #1 from Andrej Mitrovic <[email protected]> 2014-03-29 12:32:30 CET --- Here's a somewhat generic wrapper workaround: ----- template PartialTempl(alias templ, T...) { auto PartialTempl(Args...)(auto ref Args args) { return templ!T(args); } } ----- Usable as: ----- @Converter!(PartialTempl!(littleEndianToNative, ushort)) ushort reserved1; ----- Of course 'littleEndianToNative' and friends take a ubyte[N], not a ushort, so in my file loading routine I have to take that into account. But using attributes is pretty nice. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
