Function overload with template alias error

2011-12-24 Thread André Stein
Hi, I'm trying to write a template function which takes a templated alias to another type: struct test(T) { } template aliasT(T) { alias test!(T) aliasT; } void foo(T)(test!T t) { // works } void foo2(T)(aliasT!T t) { // doesn't work } int main(string[] args) { test!(int) t;

Re: Overlapping array copy exception sorting an array of Tuples

2011-03-07 Thread André Stein
Hi, Thanks first for your detailed reply! On 03/07/2011 07:21 PM, Jonathan M Davis wrote: Well, Tuple _is_ a struct, so if it's failing with Tuple, it's not going to work with just any struct (though apparently it works just fine with the struct that you wrote). Regardless, it definitely