Advertisement
mporto

refactor

Apr 2nd, 2018
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 2.23 KB | None | 0 0
  1. [  8%] Building CXX object src/main/CMakeFiles/main.dir/Spawnables.cpp.o
  2. /app/src/main/Spawnables.cpp: In member function 'Spawnables::const_iterator Spawnables::erase(Spawnables::const_iterator)':
  3. /app/src/main/Spawnables.cpp:12:32: error: no matching function for call to 'std::list<std::pair<int, Spawnable*> >::erase(Spawnables::const_iterator&)'
  4.      return items.erase(iterator);
  5.                                 ^
  6. /app/src/main/Spawnables.cpp:12:32: note: candidates are:
  7. In file included from /usr/include/c++/4.8/list:64:0,
  8.                  from /app/src/main/Spawnables.h:7,
  9.                  from /app/src/main/Spawnables.cpp:1:
  10. /usr/include/c++/4.8/bits/list.tcc:108:5: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::erase(std::list<_Tp, _Alloc>::iterator) [with _Tp = std::pair<int, Spawnable*>; _Alloc = std::allocator<std::pair<int, Spawnable*> >; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<std::pair<int, Spawnable*> >]
  11.      list<_Tp, _Alloc>::
  12.      ^
  13. /usr/include/c++/4.8/bits/list.tcc:108:5: note:   no known conversion for argument 1 from 'Spawnables::const_iterator {aka std::_List_const_iterator<std::pair<int, Spawnable*> >}' to 'std::list<std::pair<int, Spawnable*> >::iterator {aka std::_List_iterator<std::pair<int, Spawnable*> >}'
  14. In file included from /usr/include/c++/4.8/list:63:0,
  15.                  from /app/src/main/Spawnables.h:7,
  16.                  from /app/src/main/Spawnables.cpp:1:
  17. /usr/include/c++/4.8/bits/stl_list.h:1193:7: note: std::list<_Tp, _Alloc>::iterator std::list<_Tp, _Alloc>::erase(std::list<_Tp, _Alloc>::iterator, std::list<_Tp, _Alloc>::iterator) [with _Tp = std::pair<int, Spawnable*>; _Alloc = std::allocator<std::pair<int, Spawnable*> >; std::list<_Tp, _Alloc>::iterator = std::_List_iterator<std::pair<int, Spawnable*> >]
  18.        erase(iterator __first, iterator __last)
  19.        ^
  20. /usr/include/c++/4.8/bits/stl_list.h:1193:7: note:   candidate expects 2 arguments, 1 provided
  21. /app/src/main/Spawnables.cpp:13:1: error: control reaches end of non-void function [-Werror=return-type]
  22.  }
  23.  ^
  24. cc1plus: all warnings being treated as errors
  25. make[2]: *** [src/main/CMakeFiles/main.dir/Spawnables.cpp.o] Error 1
  26. make[1]: *** [src/main/CMakeFiles/main.dir/all] Error 2
  27. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement