Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- 1> with
- 1> [
- 1> _Mylist=std::_List_val<Task *,std::allocator<Task *>>
- 1> ]
- 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> &)'
- 1> with
- 1> [
- 1> _Mylist=std::_List_val<Task,std::allocator<Task>>
- 1> ]
- 1> while trying to match the argument list '(std::_List_iterator<_Mylist>, std::_List_iterator<_Mylist>)'
- 1> with
- 1> [
- 1> _Mylist=std::_List_val<Task,std::allocator<Task>>
- 1> ]
- 1> and
- 1> [
- 1> _Mylist=std::_List_val<Task *,std::allocator<Task *>>
- 1> ]
- 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>'
- 1> with
- 1> [
- 1> _Mylist=std::_List_val<Task *,std::allocator<Task *>>,
- 1> _Ty=Task *
- 1> ]
- 1> and
- 1> [
- 1> _Mylist=std::_List_val<Task,std::allocator<Task>>
- 1> ]
- 1> and
- 1> [
- 1> _Mylist=std::_List_val<Task *,std::allocator<Task *>>
- 1> ]
- 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
- 1>main.cpp(41): error C2440: 'initializing' : cannot convert from 'void *' to 'Task *'
- 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast
- ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement