|
Boost : |
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-10 12:39:42
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk