找回密码
 FreeOZ用户注册
查看: 1925|回复: 3
打印 上一主题 下一主题

[学习深造] c++ question = delete;

[复制链接]
跳转到指定楼层
1#
发表于 23-6-2016 19:44:01 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?FreeOZ用户注册

x
https://github.com/facebook/foll ... ucerConsumerQueue.h

I read the source code and I do not understand = delete; meaning
ProducerConsumerQueue(const ProducerConsumerQueue&) = delete;

TIA
回复  

使用道具 举报

2#
发表于 23-6-2016 21:33:45 | 只看该作者
告诉编译器绝对不要生产这个原型的实现?
回复  

使用道具 举报

3#
发表于 23-6-2016 21:34:00 | 只看该作者
告诉编译器绝对不要生产这个原型的实现?
回复  

使用道具 举报

4#
 楼主| 发表于 24-6-2016 07:39:37 | 只看该作者
nisejob 发表于 23-6-2016 20:34
告诉编译器绝对不要生产这个原型的实现?

Thanks

I found the answer now.

http://stackoverflow.com/questio ... unction-declaration
回复  

使用道具 举报

您需要登录后才可以回帖 登录 | FreeOZ用户注册

本版积分规则

小黑屋|手机版|Archiver|FreeOZ论坛

GMT+11, 19-2-2025 19:43 , Processed in 0.013234 second(s), 19 queries , Gzip On, Redis On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表