In order to make code as functional as possible you really need to enable C++17 or greater. In this short video, Troy shows how to enable it and provides a small bit of code to validate it.
- [Instructor] To get the most functional features,…we're going to build our code for C++ 17.…We won't always need it, but it doesn't hurt…to have it available.…Each of the three big compilers, Microsoft,…Clang and GCC has excellent C++ 17 support.…Here are the command line flags to activate it.…If you use CMake to build your programs,…then it's easy to add C++ 17 support,…simply add the line set CMake CXX standard space 17…near the top of your CMake list dot text file.…
That's all it takes.…Let's build an actual C++ 17 program…and pay attention to the command line options this time.…Let's open Visual Studio Code…we're going to go file, new…and we'll begin by saying pound include…and this is going to be iostream.…Next we'll add a space and then we're going to have…a name space and our usage here…is going to be a little bit silly but it will test…a compiler C++ 17 feature so we're going to say A…colon colon, that's the scope resolution operator,…B colon colon, C.…
This is C++ 17's nested name spaces…and a space, an open curly brace, a closed curly brace…
- Unit testing and functional programming
- Function and Lambda functions
- C++ templates
- Working with the Standard Template Library and Boost.Hana
- Functional reactive programming
Skill Level Intermediate
2. Functional Programming in Modern C++
3. Template Metaprogramming
4. Functional Reactive Programming
RxCpp library5m 21s
- 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.