Appendix A. C++11 Language Features Emulation

In this section, we will review some concepts from C++ programming that will be conceptually important in understanding several topics covered in this book. Many of these concepts have been introduced relatively recently as part of C++11. We will look at: RAII, copy- and move-semantics, auto, range-based for-loops, and C++11 exception handling enhancements. We will look at how these features can be emulated under a pre-C++11 compiler using parts of the Boost libraries.

RAII

C++ programs frequently deal with system resources like memory, file and socket handles, shared memory segments, mutexes, and so on. There are well-defined primitives, some from the C Standard Library and many more from the native ...

Get Learning Boost C++ Libraries 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.