[Issue 568] Support to implicitly deduce class template in function template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 18 17:28:18 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=568





------- Comment #1 from lovesyao at hotmail.com  2006-11-18 19:28 -------
add example

template Test5(T){
  alias int dummy;
  class Test5(T t){
    T val=t;
  }
};

template test3(T){
  alias int dummy;
  void test3(T t)(Test5!(T).Test5!(t) t){

  }
}

void main(){
  auto t = new Test5!(int).Test5!(10);
  test3!(int).test3!(10)(t);//ok
  test3(t);//please support
}


-- 




More information about the Digitalmars-d-bugs mailing list