Dive into C++14 - [1] - Introduction to C++14 core language features

Поділитися
Вставка
  • Опубліковано 28 лип 2024
  • vittorioromeo.info
    The first video is a brief introduction to some of my favorite new C++14 core language features.
    It covers the following topics, using code examples:
    * Function return type deduction.
    * `decltype(auto)`.
    * Relaxed constexpr restrictions.
    * Variable templates.
    * Generic lambdas.
    The target audience is newcomers to the C++14 standard who already have some experience with C++11.
  • Наука та технологія

КОМЕНТАРІ • 37

  • @jasontiller
    @jasontiller 6 років тому

    Thank you, Vittorio, for putting these together. Please keep up the great work!

  • @gauravsingh3007
    @gauravsingh3007 7 років тому

    Good explanation!
    Just 4 mins into the video and I think I can appreciate this!!

  • @codewing
    @codewing 7 років тому +1

    I like the C++ videos in your channel! If you've got some time and motivation keep making some more, they are really helpful! I hope I could help you with the motivation part :)

  • @yahortsaryk2842
    @yahortsaryk2842 6 років тому +1

    Thanks, that is exactly what I was looking for

  • @i_am_ashutosh
    @i_am_ashutosh 8 років тому

    Thank you for introducing C++ 14

  • @mostafayasin1
    @mostafayasin1 2 роки тому

    Many thanks .

  • @krisitak
    @krisitak 7 років тому

    Cool video. I am kinda new to C++. I come from C# background, that being said, I want to know what IDE are you using. I am pretty satisfied with Visual Studio, but the one from the video looks cool too. Is that Sublime?

  • @jaiminbk2572
    @jaiminbk2572 7 років тому +2

    thank you for introduction to c++

  • @jw200
    @jw200 7 років тому +3

    Vittorio Romeo
    Any videos coming for C++17 ?

    • @vittorioromeo1
      @vittorioromeo1  7 років тому +2

      Not planned currently... I have very limited free time at the moment :(

    • @kim15742
      @kim15742 7 років тому

      Unfortunate.. You are a really good teacher!

  • @void0main
    @void0main 6 років тому +1

    11:00 line 19 will have error "Type 'double' cannot be narrowed to 'int' in initializer list": stackoverflow.com/questions/4434140/narrowing-conversions-in-c0x-is-it-just-me-or-does-this-sound-like-a-breakin

    • @vittorioromeo1
      @vittorioromeo1  6 років тому +1

      Good catch. If you want to allow narrowing conversion, you can use round parenthesis instead (or copy-initialization).

  • @agnesakne4409
    @agnesakne4409 5 років тому

    I've been working 3,5 years as a sw engineer for major Tier1 automotive supplier and don't understand these c++14 features even after watching this vid

  • @DmitryRomanov
    @DmitryRomanov 9 років тому +3

    You can leave links like github.com/boostcon/cppnow_presentations_2015 in video description, so no one will have to type it :-)

  • @tryingtocorrect
    @tryingtocorrect 8 років тому

    at 12:50 Should it not be: auto l0 = [](auto x) { return x*2; }; ? I have not seen the syntax you use? Is it doing the same what mine here?

    • @vittorioromeo1
      @vittorioromeo1  8 років тому +2

      +TryingTo Correct It's the same thing. Think about: int x{0}; int x = 0; int x(0);

    • @tryingtocorrect
      @tryingtocorrect 8 років тому +1

      +Vittorio Romeo oh I see, thank you. Good videos and good presentations.

  • @harehudi5117
    @harehudi5117 6 років тому

    Chuky at work !!

  • @nguaial8490
    @nguaial8490 5 років тому

    7:20 what does result() do?

    • @vittorioromeo1
      @vittorioromeo1  5 років тому

      You mean `auto& result(test)`? This is simply declaring a reference named `result`, intitializing it with `test`.

  • @DaveMackenzie
    @DaveMackenzie 9 років тому

    What IDE is that? Sorry, but I haven't coded in a while.

    • @vittorioromeo1
      @vittorioromeo1  9 років тому +1

      Dave Mackenzie It's Sublime Text 3

    • @DaveMackenzie
      @DaveMackenzie 9 років тому +1

      ***** Dude! Thank-you so much for this video series. The skill-level seems to pick up right where I left off 15 years ago, and the new std functions make me glad I waited. :)
      I'll be working through these tutorials starting with C++11 over the next few weeks. (I still haven't got ST or clang working, but since Code:Blocks and MinGW are acceptable substitutes, they can wait!)

  • @bonbonpony
    @bonbonpony 4 роки тому

    So this is not "from 0 to C++14", is it? It's more like "what's new" for those who already have prior knowledge of C++11?

  • @vimalk78
    @vimalk78 9 років тому

    which editor do you use.

  • @Laekith
    @Laekith 9 років тому +2

    Really useful for people like me who are relatively new to this language
    Btw nice italian accent lmao

    • @vittorioromeo1
      @vittorioromeo1  9 років тому +13

      Emanuele Sand Thanks!
      ...std::pasta, std::pizza, std::mafia.

    • @tryingtocorrect
      @tryingtocorrect 8 років тому

      +Vittorio Romeo std::nice_rome_ice_cream :)

  • @haryworldc
    @haryworldc 4 роки тому +1

    Links referred at 8:28 are github.com/CppCon/CppCon2015 & ua-cam.com/video/_utkragEjRA/v-deo.html

  • @pepe117343
    @pepe117343 8 років тому

    can i make a vector ???

    • @vittorioromeo1
      @vittorioromeo1  8 років тому

      +Jose A Not in C++14 - I think it was proposed for C++17 but I haven't seen the proposal in the latest standard meeting reports

    • @pepe117343
      @pepe117343 8 років тому

      +Vittorio Romeo thanks man I used a vector of template and an auto argument to look in vector it works just fine and still keeps type safety

  • @bdj6115
    @bdj6115 7 років тому

    Saluti