Re: Confused by refusal to expand template

2012-03-25 Thread Kenji Hara
On Friday, 23 March 2012 at 23:01:43 UTC, Timon Gehr wrote: On 03/23/2012 11:58 PM, David wrote: Am 23.03.2012 23:52, schrieb H. S. Teoh: Code: struct S { int f(K)(K x) { return 1; } void func(K)(inout(K) x) { auto h = f(x); } } void main() { S s; s.func(abc); // This is line 44 } This

Confused by refusal to expand template

2012-03-23 Thread H. S. Teoh
Code: struct S { int f(K)(K x) { return 1; } void func(K)(inout(K) x) { auto h = f(x); } } void main() { S s; s.func(abc); //

Re: Confused by refusal to expand template

2012-03-23 Thread Timon Gehr
On 03/23/2012 11:52 PM, H. S. Teoh wrote: Code: struct S { int f(K)(K x) { return 1; } void func(K)(inout(K) x) { auto h = f(x); } } void main() {

Re: Confused by refusal to expand template

2012-03-23 Thread David
Am 23.03.2012 23:52, schrieb H. S. Teoh: Code: struct S { int f(K)(K x) { return 1; } void func(K)(inout(K) x) { auto h = f(x); } } void main() {

Re: Confused by refusal to expand template

2012-03-23 Thread Timon Gehr
On 03/23/2012 11:58 PM, David wrote: Am 23.03.2012 23:52, schrieb H. S. Teoh: Code: struct S { int f(K)(K x) { return 1; } void func(K)(inout(K) x) { auto h = f(x); } } void main() { S s; s.func(abc); // This is line 44 } This refuses to compile: test2.d(44): Error: template test2.S.func(K)