Stay Angry, Stay Foolish
原文链接:
OOP57-CPP. Prefer special member functions and overloaded operators to C Standard Library functions
阅读全文
OOP56-CPP. Honor replacement handler requirements
OOP55-CPP. Do not use pointer-to-member operators to access nonexistent members
OOP54-CPP. Gracefully handle self-copy assignment
OOP53-CPP. Write constructor member initializers in the canonical order
OOP52-CPP. Do not delete a polymorphic object without a virtual destructor
OOP51-CPP. Do not slice derived objects
OOP50-CPP. Do not invoke virtual functions from constructors or destructors
INT50-CPP. Do not cast to an out-of-range enumeration value
STR52-CPP. Use valid references, pointers, and iterators to reference elements of a basic_string
Stay Angry, Stay Foolish.