Item 34. Preprocessor Macros

I l @ ve RuBoard

Difficulty: 4

Preprocessor macros are part of C++'s heritage from C. This Item considers whether they are still relevant in the modern C++ scheme of things.

With flexible features such as overloading and type-safe templates available, why would a C++ programmer ever write a preprocessor directive like " #define "?

I l @ ve RuBoard


More Exceptional C++
More Exceptional C++: 40 New Engineering Puzzles, Programming Problems, and Solutions
ISBN: 020170434X
EAN: 2147483647
Year: 2001
Pages: 118
Authors: Herb Sutter

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net