On 2/10/12 7:28 PM, H. S. Teoh wrote:
I'm trying to write a parametrized class with a type parameter whose
existence depends on whether std.utf.decode() exists for that type.
What's the syntax to do this?

class(T) if (__traits(compiles, { std.utf.decode(T.init); } )) { … }

David

Reply via email to