为什么 C++20 允许编译默认比较,即使它被删除?
作者:NoSenseEtAl 提问时间:2/5/2021
请考虑以下代码: struct A { }; struct B { A a; bool operator == (const B& other) const = default; }; Cl...
default-comparisons 问答列表
作者:NoSenseEtAl 提问时间:2/5/2021
请考虑以下代码: struct A { }; struct B { A a; bool operator == (const B& other) const = default; }; Cl...