Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. 1>main.cpp(23): error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::_List_iterator<_Mylist>' (or there is no acceptable conversion)
  2. 1> with
  3. 1> [
  4. 1> _Mylist=std::_List_val<Task *,std::allocator<Task *>>
  5. 1> ]
  6. 1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\list(393): could be 'std::_List_iterator<_Mylist> &std::_List_iterator<_Mylist>::operator =(const std::_List_iterator<_Mylist> &)'
  7. 1> with
  8. 1> [
  9. 1> _Mylist=std::_List_val<Task,std::allocator<Task>>
  10. 1> ]
  11. 1> while trying to match the argument list '(std::_List_iterator<_Mylist>, std::_List_iterator<_Mylist>)'
  12. 1> with
  13. 1> [
  14. 1> _Mylist=std::_List_val<Task,std::allocator<Task>>
  15. 1> ]
  16. 1> and
  17. 1> [
  18. 1> _Mylist=std::_List_val<Task *,std::allocator<Task *>>
  19. 1> ]
  20. 1>main.cpp(36): error C2664: 'std::_List_iterator<_Mylist> std::list<_Ty>::erase(std::_List_const_iterator<_Mylist>)' : cannot convert parameter 1 from 'std::_List_iterator<_Mylist>' to 'std::_List_const_iterator<_Mylist>'
  21. 1> with
  22. 1> [
  23. 1> _Mylist=std::_List_val<Task *,std::allocator<Task *>>,
  24. 1> _Ty=Task *
  25. 1> ]
  26. 1> and
  27. 1> [
  28. 1> _Mylist=std::_List_val<Task,std::allocator<Task>>
  29. 1> ]
  30. 1> and
  31. 1> [
  32. 1> _Mylist=std::_List_val<Task *,std::allocator<Task *>>
  33. 1> ]
  34. 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  35. 1>main.cpp(41): error C2440: 'initializing' : cannot convert from 'void *' to 'Task *'
  36. 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast
  37. ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement