technique
[MECpp]Item-7 Never Overload '&&', '||', or ','
· β˜• 3 min read

If we don’t have a good reason for overloading an operator, don’t overload it. In the case of &&, ||, and ,, it’s difficult to have a good reason: we can’t make them behave the way they’re supposed to.


[MECpp]Item-4 Avoid Gratuitous Default Constructors
· β˜• 5 min read

Including meaningless default constructors affects the efficiency of classes, so avoiding them in classes guarantees fully-initialized objects, with the cost of some limits on how such classes can be used.