Skip to content

Instantly share code, notes, and snippets.

@chemmyone
Created May 27, 2010 06:16
Show Gist options
  • Save chemmyone/415530 to your computer and use it in GitHub Desktop.
Save chemmyone/415530 to your computer and use it in GitHub Desktop.
CXX Spell.o
../../../src/game/Spell.cpp: In member function ‘void Spell::SetTargetMap(SpellEffectIndex, uint32, std::list<Unit*, std::allocator<Unit*> >&)’:
../../../src/game/Spell.cpp:1987: error: no matching function for call to ‘std::list<Unit*, std::allocator<Unit*> >::erase(std::_List_const_iterator<Unit*>)’
/usr/include/c++/4.4/bits/list.tcc:107: note: candidates are: std::_List_iterator<_Tp> std::list<_Tp, _Alloc>::erase(std::_List_iterator<_Tp>) [with _Tp = Unit*, _Alloc = std::allocator<Unit*>]
/usr/include/c++/4.4/bits/stl_list.h:1092: note: std::_List_iterator<_Tp> std::list<_Tp, _Alloc>::erase(std::_List_iterator<_Tp>, std::_List_iterator<_Tp>) [with _Tp = Unit*, _Alloc = std::allocator<Unit*>]
make[3]: *** [Spell.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment