On 08/03/10 22:53, Andrei Alexandrescu wrote:
What I usually do is:

T foo(T)(T s) if (is(typeof(s + s))) {
}

Andrei

That's far nicer, I keep forgetting about is(typeof()), thanks :)

Reply via email to