14 thoughts on “C++ Weekly – Ep 190 – The Important Parts of C++17 in 10 Minutes

  • October 21, 2019 at 3:38 pm
    Permalink

    C++ 17 feature I use the most is:
    auto & f = foos.emplace_back();

    Reply
  • October 21, 2019 at 3:49 pm
    Permalink

    I think you forgot constexpr if

    Reply
  • October 21, 2019 at 3:53 pm
    Permalink

    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.

    Reply
  • October 21, 2019 at 4:07 pm
    Permalink

    Another great episode! Every time I see the notification for C++ weekly I am "Guaranateed" to learn something.

    Reply
  • October 21, 2019 at 4:17 pm
    Permalink

    There are some more important features as well
    1. Binary literals
    2. if constexpr
    3. Nested namespace

    Reply
  • October 21, 2019 at 5:13 pm
    Permalink

    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.

    Reply
  • October 21, 2019 at 5:52 pm
    Permalink

    Excuse me ? What is a widget?

    Reply
  • October 21, 2019 at 6:24 pm
    Permalink

    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.

    Reply
  • October 21, 2019 at 8:07 pm
    Permalink

    Also the flag "-fno-elide-constructors" does not work anymore, right? It is now guaranteed.

    Reply
  • October 22, 2019 at 12:32 am
    Permalink

    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?

    Reply
  • October 22, 2019 at 2:39 am
    Permalink

    Structured bindings! I didn’t know that was a thing!!

    Reply
  • October 22, 2019 at 2:58 am
    Permalink

    I love the features that makes meta programming more "normal." Fold expression belongs to that category.

    Reply
  • October 22, 2019 at 1:22 pm
    Permalink

    so far, 3 people have confirmed they are using c++98

    Reply
  • October 22, 2019 at 3:31 pm
    Permalink

    Just want to remind that "inline static" for static members happened in c++17 also
    No more need to create nice class only to add some additions outside of it just for sake of it

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *