क्या दो पुनरावृत्तियों की तुलना करना संभव है?इटरेटर्स की तुलना करें, सी ++
Assertion failed: Vector iterators incompatible...
वहाँ तुलना के किसी भी अन्य रास्ता नहीं है: एक एसटीडी का उपयोग कर तुलना :: मिनट
void change (typename TList <Item *>::Type ::iterator it_begin, typename TList <Item*>::Type ::iterator it_end)
{
....
this->items.resize (index);
std::sort (it_begin, std::min (it_end, it_begin += index - 1); //Compare two iterators, exception
....
}
निम्नलिखित अपवाद फेंकता है?
'TList- :: प्रकार' और 'यह-> आइटम' के प्रकार क्या हैं? क्या इटरेटर 'इस-> आइटम' में इंगित करते हैं? –