Chapter 22. C Compatibility

It were not best that we should all think alike; it is difference of opinion that makes horse-races.

Pudd’nhead WilsonMARK TWAIN

The original C standard was published in 1990[1] and amended in 1995. The C++ standard, first published in 1998, was based in part on the C language as it existed at the time. The C standard was revised in 1999, but those changes are not reflected in the current C++ standard. The TR1 library picks up the library changes made to C in 1999. In Chapter 12, we looked at those changes as they affect floating-point math. In this chapter, we’ll look at the rest of those changes.

Those changes include the addition of library functions that traffic in values of an integer type guaranteed to be at ...

Get The C++ Standard Library Extensions A Tutorial and Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.