Theoretically, would it be possible to allow multiple C++ templates to have the same name? -


this question has answer here:

it function overloading. e.g. ok this:

void foo(int i) {   ; }  // function overload ftw. void foo(int i, int j) {   ; } 

but not (yet) ok this:

template<typename t> class foo { };  // fail! template<typename t1, typename t2> class foo { }; 

does feature not exist in order avoid confusion? or there reason wouldn't make sense?

no not possible in c++ that.

the template looked first, parameters make impossible know template which.

it seem duplicate one: why not possible overload class templates?


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -