C++ Primer, Fifth Edition
Workarounds for C++11 Features
not Implemented in GCC 4.7.0
Barbara E. Moo
[email protected]
August 9, 2012
A few C++11 features used in C++ Primer are not yet implemented in the lat-
est GNU compiler (GCC 4.7.0). This document outlines these unimplemented
features and, where possible, suggests workarounds.
defaultfloat and hexfloat manipulators Version_test.h provides an
implementation for defaultfloat. There is no workaround for the missing
hexfloat manipulator.
Inherited constructors There is no direct workaround. Write the correspond-
ing definitions directly.
Reference qualified member functions There is no direct workaround for this
feature. Because reference qualifiers are generally used as an optimization to
trigger move semantics, few programs require this feature.
Regular expression library There is no workaround.
string numeric conversions Version_test.h provides an implementation
for stod and to_string.