Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering C++ Programming

You're reading from   Mastering C++ Programming Modern C++ 17 at your fingertips

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781786461629
Length 384 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Jeganathan Swaminathan Jeganathan Swaminathan
Author Profile Icon Jeganathan Swaminathan
Jeganathan Swaminathan
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. C++17 Features FREE CHAPTER 2. Standard Template Library 3. Template Programming 4. Smart Pointers 5. Developing GUI Applications in C++ 6. Multithreaded Programming and Inter-Process Communication 7. Test-Driven Development 8. Behavior-Driven Development 9. Debugging Techniques 10. Code Smells and Clean Code Practices

What's new in C++17?

The complete list of C++17 features can be found at http://en.cppreference.com/w/cpp/compiler_support#C.2B.2B17_features.

To give a high-level idea, the following are some of the new C++17 features:

  • New auto rules for direct-list-initialization
  • static_assert with no messages
  • Nested namespace definition
  • Inline variables
  • Attributes for namespaces and enumerators
  • C++ exceptions specifications are part of the type system
  • Improved lambda capabilities that give performance benefits on servers
  • NUMA architecture
  • Using attribute namespaces
  • Dynamic memory allocation for over-aligned data
  • Template argument deduction for class templates
  • Non-type template parameters with auto type
  • Guaranteed copy elision
  • New specifications for inheriting constructors
  • Direct-list-initialization of enumerations
  • Stricter expression evaluation order
  • shared_mutex 
  • String conversions

Otherwise, there are many new interesting features that were added to the core C++ language: STL, lambadas, and so on. The new features give a facelift to C++, and starting from C++17, as a C++ developer, you will feel that you are working in a modern programming language, such as Java or C#.

What features are deprecated or removed in C++17?

The following features are now removed in C++17:

  • The register keyword was deprecated in C++11 and got removed in C++17
  • The ++ operator for bool was deprecated in C++98 and got removed in C++17
  • The dynamic exception specifications were deprecated in C++11 and and got removed in C++17
You have been reading a chapter from
Mastering C++ Programming
Published in: Sep 2017
Publisher: Packt
ISBN-13: 9781786461629
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image