// ((++currentEntry)--) is equivalent to (currentEntry + 1). Kind of. menuEntries.insert((++currentEntry)--, newEntries.begin(), newEntries.end());
So, I have the worst code in the world here. Is there a better way to do this?
When using '+ 1', I get the following:
source/menu.cpp:146:37: error: invalid operands to binary expression ('list<menuEntry *>::iterator' (aka '_List_iterator<menuEntry *>') and 'int') menuEntries.insert(currentEntry + 1, ... ~~~~~~~~~~~~ ^ ~
c ++ stdlist
Jookia
source share