mirror of
https://github.com/cpp-best-practices/cppbestpractices.git
synced 2025-12-17 03:04:36 +03:00
cc81a9b4c5b3893164f22ada1616ea955c03edbd
Prior to C++11, only static const data members of integral or enumeration type could have initializers in the class definition. C++11 extends that to floating point types (float, double) as well. However, in order for such members to be initialized in the class defintion, such members must either be constexpr or non-static.
cppbestpractices
Collaborative Collection of C++ Best Practices
This document is available as a download via gitbook
For more information please see the Preface.
This book has inspired an O'Reilly video: Learning C++ Best Practices
Description
Collaborative Collection of C++ Best Practices. This online resource is part of Jason Turner's collection of C++ Best Practices resources. See README.md for more information.
Readme
900 KiB
Languages
Markdown
100%