fix VC6 compile

This commit is contained in:
Chris Danford
2006-02-21 20:30:30 +00:00
parent 9004da0be7
commit c8829120a9
+7 -2
View File
@@ -168,8 +168,13 @@ void ScreenOptionsManageCourses::BeginScreen()
ASSERT(0);
case EditMode_Practice:
case EditMode_Home:
// strip out non-edits
RemoveIf( m_vpCourses, not1(mem_fun(&Course::IsAnEdit)) );
// Strip out non-edits.
// VC6 is missing mem_fun for const members. Lame. Work around by not using mem_fun. */
for( int i=m_vpCourses.size()-1; i>=0; i-- )
{
if( m_vpCourses[i]->IsAnEdit() )
m_vpCourses.erase( m_vpCourses.begin()+i );
}
break;
case EditMode_Full:
break;