Skip to main content

Abstract

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++.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 74.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1996 Springer-Verlag London Limited

About this chapter

Cite this chapter

Seed, G.M. (1996). The Preprocessor. In: An Introduction to Object-Oriented Programming in C++. Springer, London. https://doi.org/10.1007/978-1-4471-3378-0_18

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-3378-0_18

  • Publisher Name: Springer, London

  • Print ISBN: 978-3-540-76042-9

  • Online ISBN: 978-1-4471-3378-0

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics