Item 6: Explicitly disallow the use of compiler-generated functions you do not want(Effective C++)
2009-12-26 12:09
495 查看
To disallow functionality automatically provided by compilers, declare the
corresponding member functions private and give no implementations.
Using a base class like Uncopyable is one way to do this.
corresponding member functions private and give no implementations.
Using a base class like Uncopyable is one way to do this.
相关文章推荐
- Item6:Explicitly disallow the use of compiler-generated functions you do not want.
- Item5: Explicitly disallow the use of compiler-generated functions you do not want--若不想使用编译器自动生成的函数,就该明确拒绝
- effective c++ 6: Explicitly disallow the use of compiler-generated functions you do not want
- 【条款6】Explicitly disallow the use of compiler-generated functions you do not want
- 6. Explicitly disallow the use of compiler generated functions you do not want
- 条款6:若不想使用编译器自动生成的函数,就该明确拒绝(Explicity disallow the use of compiler-generated functions you do not want)
- 条款06:若不想使用编译器自动生成的函数,就该明确拒绝(Explicitly disallow the use of compiler-generated you do not want.)
- 《Effective C++》读书笔之六 Item 6. Explicitly disallow the use of compile-generated functions
- 51 You have not configured Oracle Managed Files (OMF) in your database. You do not want to scan the
- 将分支推送到远程存储库时遇到错误: rejected Updates were rejected because the remote contains work that you do not have locally
- 关于“This file has been modified outside of the source editor. Do you want to reload it?”
- VC6编辑时提示This file has been modified outside of the source of editor.Do you want to reload it?解决方法
- Unable to access the IIS metabase.You do not have sufficient privilege
- [Code Sample]Alert "Do you want to save the changes you have made?"
- Linux环境下安装Oracle 10g 发生错误 You do not have permission to write to the inventory location
- Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in
- 已解决:无法连接到WMI提供程序。你没有权限或者该服务器无法访问/cannot connect to WMI provider. You do not have permission or the……
- Close a IE11 window without receiving the “Do you want to close this window” prompt?
- 安装Visual Studio 2010时提示"The location specified for the help content store is invalid or you do not have access to it".
- Item6 Use the explicitly typed initializer idiom when auto deduces undesied types