





Be cautious with unsigned integers
Unsigned integers are sometimes unavoidable, like when dealing with raw binary data. A good example is a mail server reading an incoming binary stream. But more often than not, the
Unsigned integers are sometimes unavoidable, like when dealing with raw binary data. A good example is a mail server reading an incoming binary stream. But more often than not, the
Standard C++ supports templates’ template arguments. For instance, a mail server class can store incoming messages in a vector of vector(s) of bytes: vector< vector > vmessages; Please note that
Traditionally, structs serve as data aggregates. However, in C++ a struct can have constructor(s), destructor and member functions just like a class. The only difference between the two is the
A derived class may hide a member function declared in its base class by using the same function name, but with a different signature, or list of arguments. Usually, this
When designing a class, you should remember that one day it may serve as a base class for other classes. When deriving a class from a base, the base’s destructor