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. - Наука та технологія
Thank you, Vittorio, for putting these together. Please keep up the great work!
Good explanation!
Just 4 mins into the video and I think I can appreciate this!!
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 :)
Thanks, that is exactly what I was looking for
Thank you for introducing C++ 14
Many thanks .
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?
yes it is
thank you for introduction to c++
Vittorio Romeo
Any videos coming for C++17 ?
Not planned currently... I have very limited free time at the moment :(
Unfortunate.. You are a really good teacher!
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
Good catch. If you want to allow narrowing conversion, you can use round parenthesis instead (or copy-initialization).
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
You can leave links like github.com/boostcon/cppnow_presentations_2015 in video description, so no one will have to type it :-)
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?
+TryingTo Correct It's the same thing. Think about: int x{0}; int x = 0; int x(0);
+Vittorio Romeo oh I see, thank you. Good videos and good presentations.
Chuky at work !!
7:20 what does result() do?
You mean `auto& result(test)`? This is simply declaring a reference named `result`, intitializing it with `test`.
What IDE is that? Sorry, but I haven't coded in a while.
Dave Mackenzie It's Sublime Text 3
***** 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!)
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?
which editor do you use.
vima78 It's Sublime Text 3
Really useful for people like me who are relatively new to this language
Btw nice italian accent lmao
Emanuele Sand Thanks!
...std::pasta, std::pizza, std::mafia.
+Vittorio Romeo std::nice_rome_ice_cream :)
Links referred at 8:28 are github.com/CppCon/CppCon2015 & ua-cam.com/video/_utkragEjRA/v-deo.html
can i make a vector ???
+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
+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
Saluti