This is a must-read for all the programmers. Codes are in C or C++ but the idea is the fruit of this book.
[more]
C++ subtleties
Calling delete this may or may not crash, depending on whether the object is created outside or inside heap The prefix and postfix operator++ function is differentiated by void argument (prefix) or a dummy int argument (postfix) The compiler constructs a vtable for an object gradually during the constructor of...
[more]
ns3: Use of pointers
In NS-3, the pointers are Ptr<T>, which is a smart pointer template that wraps a real C pointer.
[more]
Removing Universal Binary
In MacOS X, we now have universal binary to make program compatible with PPC and i386 architectures. But who’s still using PPC nowadays? To strip a UB into single-architecture binary to save hard disk space, issue:
[more]
GCC's predefined
Call with :|cpp -dM or the gcc version below
[more]