On 8/7/2010 12:42 PM, Don wrote:
> Brad Roberts wrote:
>> module test;
>>
>> void main()
>> {
>> int[] foos;
>> func1(foos);
>> }
>>
>> void func1(T)(const T[] foos)
>> {
>> T afoo;
>> func2(foos, afoo);
>> }
>>
>> void func2(T)(const T[] foos, out T afoo)
>> {
>> }
>>
>> $ dmd -c t
Brad Roberts wrote:
module test;
void main()
{
int[] foos;
func1(foos);
}
void func1(T)(const T[] foos)
{
T afoo;
func2(foos, afoo);
}
void func2(T)(const T[] foos, out T afoo)
{
}
$ dmd -c test.d
test.d(12): Error: template test.func2(T) does not match any function template
d
module test;
void main()
{
int[] foos;
func1(foos);
}
void func1(T)(const T[] foos)
{
T afoo;
func2(foos, afoo);
}
void func2(T)(const T[] foos, out T afoo)
{
}
$ dmd -c test.d
test.d(12): Error: template test.func2(T) does not match any function template
declaration
test.d(12):