0% found this document useful (0 votes)
362 views

C++ Primer, Fifth Edition: Workarounds For C++11 Features Not Implemented in GCC 4.7.0 Barbara E. Moo

This document outlines C++11 features that are not yet implemented in GCC 4.7.0 and provides workarounds where possible. It discusses unimplemented features such as defaultfloat and hexfloat manipulators, inherited constructors, reference qualified member functions, the regular expression library, and string numeric conversions. Version_test.h provides implementations for defaultfloat and string numeric conversions to address the unavailability of these features in the compiler. There are no workarounds suggested for hexfloat, inherited constructors, reference qualified member functions, or the regular expression library.

Uploaded by

Sujat Kamal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
362 views

C++ Primer, Fifth Edition: Workarounds For C++11 Features Not Implemented in GCC 4.7.0 Barbara E. Moo

This document outlines C++11 features that are not yet implemented in GCC 4.7.0 and provides workarounds where possible. It discusses unimplemented features such as defaultfloat and hexfloat manipulators, inherited constructors, reference qualified member functions, the regular expression library, and string numeric conversions. Version_test.h provides implementations for defaultfloat and string numeric conversions to address the unavailability of these features in the compiler. There are no workarounds suggested for hexfloat, inherited constructors, reference qualified member functions, or the regular expression library.

Uploaded by

Sujat Kamal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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.

You might also like