C++模板编译错误

来源:互联网 发布:java中nio 编辑:程序博客网 时间:2024/05/11 21:13
1.cpp: In function ‘int main()’:
1.cpp:24: error: call of overloaded ‘swap(int&, int&)’ is ambiguous
1.cpp:12: note: candidates are: void swap(any&, any&) [with any = int]
/usr/include/c++/4.4/bits/move.h:76: note:                 void std::swap(_Tp&, _Tp&) [with _Tp = int]

ambiguous:模糊的
candidates:另一个

swap与库文件move.h冲突

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(537) | 评论(0) | 转发(0) |
0

上一篇:如何区分本地用户和域用户?

下一篇:C++函数小记

相关热门文章
  • test123
  • 编写安全代码——小心有符号数...
  • 使用openssl api进行加密解密...
  • 一段自己打印自己的c程序...
  • 彻底搞定C语言指针详解-完整版...
  • linux dhcp peizhi roc
  • 关于Unix文件的软链接
  • 求教这个命令什么意思,我是新...
  • sed -e "/grep/d" 是什么意思...
  • 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
原创粉丝点击