The preprocessor is increasingly becoming redundant because of equivalent C++ language-based features. The const keyword allows constant identifiers to be defined. Macros are replaced by inline functions, with the template feature defining and declaring type-independent functions and classes. We shall see in the next chapter that the namespace feature associates a name to a given scope. All of const, inline, template and namespace are statically type-checked, whereas the preprocessor bypasses the static type checking mechanism of C++.


Line Number Class Point Source File Null Directive Head File 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag London Limited 1996

Authors and Affiliations

  • Graham M. Seed
    • 1
  1. 1.Department of Mechanical & Chemical EngineeringHeriot Watt UniversityEdinburghUK

Personalised recommendations