Type System
Listings
All links in this category.
Showing 1–8 of 8 editor-approved links.
C++ is a statically typed language but its type system is not bulletproof. This article reveals some all-too-common type glitches and how to fix them. (Thomas Guest)
Explains why you should never call virtual functions during construction and destruction of your objects. (Scott Meyers)
Rvalue references allow programmers to avoid logically unnecessary copying and to provide perfect forwarding functions. They are primarily meant to aid in the design of higher performance and more robust libraries.
Explains run-time C++ implementation details such as class layout techniques and the virtual function call mechanism.
Explains how rvalue references solve at least two problems: implementing move semantics, and perfect forwarding.
Ranged types, common in Ada, allow the programmer to constrain a numerical type to a certain range. This article presents a library that brings these types to C++.
Phillip Bruce gets around some of the limitations of the pointer-to-member with a model of class associations that he calls "Associative Chains."
Operator overloading may be syntactic sugar, but there are a lot of things that don't taste very good without sugar.
See also