Skiing & Snow
C++ 17 feature I use the most is: auto & f = foos.emplace_back();
I think you forgot constexpr if
I just now realize how many C++ 17 features I already took for granted. Structured bindings and if with initializer are big ones. I use the modern if all the time. I wrote a lot of Go before C++ 17 so I was very happy to see C++ finally adopt that feature. Stringview is the one thing I have never used so far I'll have to try it out some day.
Another great episode! Every time I see the notification for C++ weekly I am "Guaranateed" to learn something.
There are some more important features as well1. Binary literals2. if constexpr3. Nested namespace
Why are we even forced to write "constexpr" everywhere anymore? Wouldn't it make more sense to just make it the default, and add some uglification if for some odd reason there's something that must not be evaluated at compile time? In a few years' time I guarantee that this will be thought of as one of the ugliest warts of the language.
Excuse me ? What is a widget?
I'm surprised `if constexpr` didn't make the list, given its ability to, in some cases, completely remove SFINAE overhead. I really like if-init because it reduces scope, but I really hate it because no matter how you format it, its presence really interrupts the flow of reading code.
Also the flag "-fno-elide-constructors" does not work anymore, right? It is now guaranteed.
At the end of the video he says when he writes 'void func()' we're accessing the global scope, don't write code like this. What is he referring to here and why shouldn't it be done?
Structured bindings! I didn’t know that was a thing!!
I love the features that makes meta programming more "normal." Fold expression belongs to that category.
so far, 3 people have confirmed they are using c++98
Just want to remind that "inline static" for static members happened in c++17 alsoNo more need to create nice class only to add some additions outside of it just for sake of it
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.