Changed from iterator to const_iterator to fix VC++ issue
Fixed VC++ warning