
10 Jul
2008
10 Jul
'08
4:39 p.m.
AMDG Phil Endecott wrote:
Something like this (probably full of syntax errors....)
template <typename Iter> void SpreadSort(Iter begin, Iter end) { .... generic code .... }
template <typename T> void SpreadSort< std::vector<T>::iterator >( std::vector<T>::iterator begin, std::vector<T>::iterator end) { SpreadSort(&(*begin), &(*end)); }
That doesn't work. The compiler can't deduce T. In Christ, Steven Watanabe