On 14 Sep 2006 18:04:59 GMT in comp.lang.c++, Gerhard Pfeiffer
<gp@bnbt.dewrote,
>template<int DIM, typename T>
data_structure<DIM, T>::iterator
operator+(data_structure<DIM, T>::iterator it, int n) {
iterator ret();
ret.index = it.index + n;
}
iterator is a type dependent on the template parameter; "typename"
is required.
template<int DIM, typename T>
typename data_structure<DIM, T>::iterator
operator+(typename data_structure<DIM, T>::iterator it, int n) {
iterator ret();
ret.index = it.index + n;
}