Guest User

Untitled

a guest
Oct 23rd, 2014
769
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1.  
  2. e:\code\foo.cpp(19): error C2593: 'operator =' is ambiguous
  3. d:\visual studio 2013\vc\include\map(212): could be 'std::map<std::string,std::string,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>> &std::map<_Kty,_Ty,std::less<_Ty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator =(std::initializer_list<std::pair<const _Kty,_Ty>>)'
  4. 1> with
  5. 1> [
  6. 1> _Kty=std::string
  7. 1> , _Ty=std::string
  8. 1> ]
  9. 1> d:\visual studio 2013\vc\include\map(166): or 'std::map<std::string,std::string,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>> &std::map<_Kty,_Ty,std::less<_Ty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator =(std::map<_Kty,_Ty,std::less<_Ty>,std::allocator<std::pair<const _Kty,_Ty>>> &&)'
  10. 1> with
  11. 1> [
  12. 1> _Kty=std::string
  13. 1> , _Ty=std::string
  14. 1> ]
  15. 1> d:\visual studio 2013\vc\include\map(150): or 'std::map<std::string,std::string,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>> &std::map<_Kty,_Ty,std::less<_Ty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator =(const std::map<_Kty,_Ty,std::less<_Ty>,std::allocator<std::pair<const _Kty,_Ty>>> &)'
  16. 1> with
  17. 1> [
  18. 1> _Kty=std::string
  19. 1> , _Ty=std::string
  20. 1> ]
  21. 1> while trying to match the argument list '(std::map<std::string,std::string,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>, initializer-list)'
  22. 1> with
  23. 1> [
  24. 1> _Kty=std::string
  25. 1> , _Ty=std::string
  26. 1> ]
Advertisement
Add Comment
Please, Sign In to add comment