Preparing for the Future

Over time, sources tend to be used for different purposes than those for which they were initially created. Although the original life cycle, or project scope, of sources can usually be determined quite easily, it often happens that sources are reused in different (or follow-up) projects. This means that issues can arise in different areas when sources are at some point compiled with a different compiler (compatibility) and perhaps even for a different target system (portability). This section provides tips that help you write sources that do not suffer from many of the problems encountered during reuse. Most of these tips concern standard coding practices and therefore do not take up any extra development time. This ...

Get C++ Footprint and Performance Optimization now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.