《Effective C++》读书笔之六 Item 6. Explicitly disallow the use of compile-generated functions
来源:互联网
Usually, if you don't want a class to support a particular kind of functionality, you simply don't declare the function that would provide it. But sometimes as the Item 5 points out, if you don't declare them and somebody tries to call them, compilers declare them for you. Usually, if you don't want a class to support