如果我自己写了一个,如何重新启用默认密码?
我知道写一个c'tor会禁用默认的
您可以将其实现为default(或根据需要使用自定义实现):
default
struct C { explicit C(int) {} // Disable default constructor C() = default; // re-enable it :) };
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句