I have a function that looks like this
void findstuff( const LLUUID& id)
{
std::vector<LLUUID>::iterator key = bogus.begin();
while ( key != bogus.end())
{
if ( key == id) // bit me
{
bogus.erase( key);
}
++key;
}
}
bogus is a vector that is defined like this...
std::vector<LLUUID> bogus;
What this function is supposed to do is find the UUID it's passed, in the vector 'bogus', and if found, delete it. This will not compile in Visual Studio. I get the following error on the line labeld 'bite me':
1>crap.cpp(145) : error C2678: binary '==' : no operator found which takes a left-hand operand of type 'std::_Vector_iterator<_Ty,_Alloc>' (or there is no acceptable conversion)
I don't know enough about c++ to fix this.
LLUUID is a class defined by Linden Lab. The argument of this function must be as shown--changing that is cheating. Casting 'key' to ( const LLUUID&

L$5000 for the first correct solution.
Thanks