May 15, 2000

How Many Member Functions Can a Class Contain?

The C++ standard doesn’t specify the maximal number of member functions that a class can have. However, it recommends that it be 4096. Normally, classes don’t have more than 15-25 member functions so you never care about this upper limit. However, people who migrate from C to C++ sometimes group

Avoiding Code Bloat Caused by Inline

I received an interesting question from a reader. He used STL’s vector in a class that was heavily used in his project. The two compilers he used produced an extremely bloated executable file in debug mode. Although the release mode was much slimmer, he wondered what was causing this code


I often receive readers’ queries regarding non-standard header files that they don’t have in their development suite, e.g.,,, that they wish to install. This header chase is futile

Does the Order of Type Qualifiers Matter?

Do the following declarations differ in any way from one another? const long int N=0;long const int N=0; No, they don’t. C and C++ do not enforce a specific order of type qualifiers in a declaration. Therefore, you can use any permutation without changing the declaration’s semantics. In both cases,

Using dynamic_cast

You can apply operator dynamic_cast only to polymorphic objects (a polymorphic object is one that has at least one virtual member function). This is a requirement of the C++ standard. There are two reasons for this restriction. In order to perform a dynamic cast, the implementation needs to access the

Orphaned Exchange Accounts

Question: I have some orphaned Exchange mailboxes that are displayed under Private Information Store/Mailbox Resources. How do I remove them if the object is not defined in the DS? Answer: Make sure you have a good and current backup of your Exchange system. I’d get both online and offline backups,