View Single Post
Old 2013-04-10, 22:24   #2
ewmayer's Avatar
Sep 2002
Rep├║blica de California

22·5·587 Posts

Figured it out - the 2 recursive calls within the function definition also need a type-specialization prefix:

merge_sort_stlvec<T>(ai , p);
merge_sort_stlvec<T>(ai+p, n-p);

I simply *love* working with templates ... the compiler error messages are always so clear and incredibly helpful at pinpointing what is needed.
ewmayer is offline   Reply With Quote