On Mon, Aug 15, 2011 at 7:22 PM, Gordon Woodhull <gordon@woodhull.com> wrote:
If you still have the container type at the place where you're trying to deduce is_continuous, I think that would be the way to go.
Unfortunately I don't have access to the container type, because my
iterator comes from any boost.range compatible type.
Right. I don't think you can determine from its type if an iterator came from a vector. You could determine if the iterator is random access but then you'd be screwed if someone passed you a deque iterator, if you really need contiguity.
Maybe I'm missing something. I know you can't ever deduce T from dependent<T>::nested though.
Sorry,
Gordon