My favorites | Sign in
Logo
                
Revision: r1633
Author:  i...@gmx-topmail.de
Date:  Sep 05, 2009
Review scores: No one has yet scored this revision.
 

Log message

Fixed formally incorrect const_reverse_iterator usage (breaks on GCC 4.0)

Affected files

    expand all   collapse all
Modify/trunk/MTA10_Server/mods/deathmatch/logic/CElement.cppdiff
Modify/trunk/MTA10_Server/mods/deathmatch/logic/CLanBroadcast.cppdiff
Comment by ccw808, Sep 05, 2009
What about using this instead:

const std::list < CElement* >& listEntities = find->second;

It would avoid copying the list, and should stop GCC issues when using a const iterator.

Project members, sign in to write a code review
Hosted by Google Code