Click to See Complete Forum and Search --> : STL deque question


Jayson Smith
October 4th, 1999, 09:10 PM
I'm using Microsoft VC++ 5.0, starting to play around with STL. I'm trying to perform the following operation on a deque:

myDeque.insert (iterator it, InputIterator first, InputIterator last);

For some reason, no matter what I do, the compiler tries to use the OTHER version of insert:

myDeque.insert (iterator it, size_type n, const T& x);

Of course, it tells me it doesn't know how to convert an input iterator into an unsigned int. Well, DUH. I've tried const char *, casting to vector<char>::const_iterator, even copied the whole character array into a vector and used myVec.begin () and myVec.end (). NOTHING WORKS!!

I'm very frustrated. Please help!

-Jayson

(trying to convince my team to stop writing their own container classes, but if this is how the "standard" is implemented by Microsoft, the hard way might be BETTER!)