Robert Clipsham wrote:
On 08/03/10 22:53, Andrei Alexandrescu wrote:What I usually do is:T foo(T)(T s) if (is(typeof(s + s))) { } AndreiThat's far nicer, I keep forgetting about is(typeof()), thanks :)
It'll be hard to forget once TDPL will be out there, the idiom is present in several places.
Man I can't wait for that book to be out. Andrei
