
14 Jan
2009
14 Jan
'09
10:56 p.m.
AMDG Phil Endecott wrote:
I think you can use things like typename RandomAccessIter::value_type instead of passing *first in order to determine data_type.
I tried that, but it didn't compile on my system (MacOSX PPC gcc4.0.1).
That's surprising. Maybe you could distil it down to a minimal example and we can all scratch our heads over it.
Shouldn't it be typename std::iterator_traits<RandomAccessIter>::value_type? In Christ, Steven Watanabe