On 12/2/14 6:28 PM, H. S. Teoh via Digitalmars-d wrote:
Technically, you *can* do that, but it's a lot more verbose (plus, ddoc doesn't know how to generate docs for eponymous templates properly and it looks ugly): template method(R) { import std.range : isInputRange; void method(R range) if (isInputRange!R) { ... } }
That works? I wouldn't expect it to, since the method inside the template is not a template.
-Steve