Cool, that works, thanks. Is this in Phobos by any chance? Otherwise I'll just use a more flexible version of that.
No more flexible version available, sadly. I wish this worked (I think it's in Bugzilla somewhere): template IsA( alias F, T ) { static if ( is( T t == F!U, U ) ) { enum IsA = true; } else { enum IsA = false; } } -- Simen