Compatibility with old source code is a major design goal for C++. In this video, Troy builds a small sample program which was designed for C++03 using a modern compiler. Additionally, he gives advice on how to make sure that your code still builds correctly.
- [Instructor] Bjarne Stroustrup, the creator of C++ and the ISO C++ committee have both stressed the importance of not breaking working code. For this reason, the committee rarely deprecates a language feature. When it does, it is marked deprecated for at least two release cycles before it is removed from the language. Why does old code break? There is no certification for C++ compilers. While modern compilers are unbelievable sophisticated, bugs do occasionally occur. In fact, sometimes programmers exploit known compiler bugs only to have their code break once the issue is fixed.
Also, some constructs were poorly designed from the beginning. The lack of a true null value until C++ 11 is a good example of that. It caused a lot of issues. Also, sometimes new code conventions can cause problems. Modern C++ says it crashed at having move constructor defined. I've heard that older code can have crash bugs when built on new compilers because of this new convention.
- Major new C++ features
- Turning on modern C++
- Letting the compiler help
- Using the new features correctly
- Using auto type deduction
- Using lambdas
- Range-based for loops
- How C++ and the Standard Template Library name things
- Making the best of the filesystem library
- Managing objects
Skill Level Beginner
1. What Is Modern C++?
2. Tools That Improve Your Code
3. Using the New Features Correctly
4. Don't Reinvent the Wheel
5. Managing Objects
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.