C++11: deleted copy control

来源:互联网 发布:软件小助手 开始菜单 编辑:程序博客网 时间:2024/06/05 05:08

这里写图片描述

// Because the copy constructor is defined, the compiler will not syn-// thesize a move constructor for class B. As a result, we can neithe-// r move nor copy objects of type B. If a class derived from B wante-// d to allow its objects to be copied or moved, that derived class w-// ould have to defined its own versions of these construtors.// ---from C++ primer 5th(p.624)
0 0