Good talk. C++ is cool. Lots of cool functionalities and yet the basics are advanced and everything is looking like witchery
@DalasYoo2 жыл бұрын
This should be the MUST WATCH tutorial for template metaprogramming. Very helpful to get the overview.
@perfumedsea3 жыл бұрын
Extremely helpful. Very well prepared slides with colors and boxes. Hope you could prepare some more general templates programming videos.
@andraantariksa40273 жыл бұрын
CppCon 2014: Walter E. Brown "Modern Template Metaprogramming: A Compendium" - Part 1 : kzfaq.info/get/bejne/d9NinNZjtqnaqI0.html - Part 2 : kzfaq.info/get/bejne/l5Z2n8x83MnbiHk.html
@letsbegin_staytrue11 ай бұрын
long overdue in learning type traits. Thanks a lot for this intro.😄
@ecosta3 жыл бұрын
Really cool stuff. I wish I had that talk years ago.
@eLBehmo3 жыл бұрын
A good example for adding specializations is std::numeric_limits
@rastaarmando70582 жыл бұрын
That is undefined behaviour.
@yuanjunren5220 Жыл бұрын
Very helpful. Thx for sharing.
@simonfarre49073 жыл бұрын
What I like about constexpr is that essentially, we can have a constexpr function return values of different types, thus making it kind of a meta function, right? Used it just last week, where inside the function, I have a "if constexpr(...) {} else {}" where the two different branches return different types, thanks to the auto keyword in the function signature.
@OGdoCavaco4 ай бұрын
Thanks Jody
@rostislavstelmach91683 жыл бұрын
Great talk!! Thank you very much!
@Sergei_Sai3 жыл бұрын
Big thanks, it very helpful for me.
@child_of_god_3 жыл бұрын
I've been programming with assembler and turbo pascal since 87 and been using c++ since 98, and since template metaprogramming was first introduced until now, I've been avoiding it successfully. so disliked it. MFC is not helping either by making things so easy in the conventional class programming. Now I have to learn it since I'm using Boost, and watching these series is really helpful
@dekadebashish3 жыл бұрын
Great intro to type manipulation using templates
@Jacob0112 жыл бұрын
This is nowhere near as introductory as I would have hoped. A lot of the examples need to be explained way way more . Like the integral_constant at 27:27. Using integral_constant within the definition of integral_constant just gets glossed over. Unbelievable!
@TrueWodzu2 жыл бұрын
I do agree with you. This was crazy, after watching 48 minutes of the video I still don't understand the usefulness of this. Practical examples were missing!
@haykanushkhachaturian2 жыл бұрын
Interesting!! Thank you
@CppCon2 жыл бұрын
Glad you liked it!
@hamed93272 жыл бұрын
excellent explanation!
@CppCon2 жыл бұрын
Glad it was helpful!
@origamibulldoser16183 жыл бұрын
How do you deal with increased compile times as a result of template usage?
@sundareswaransenthilvel27593 жыл бұрын
Thanks very much!
@ahmadalastal53032 жыл бұрын
Awesome talk!! loved it so much
@ricardomonicat75643 жыл бұрын
Great talk! Thank you very much.
@CppCon3 жыл бұрын
Glad it was helpful!
@k6l2t3 жыл бұрын
Holy moly at 40:53 ... he tried SO HARD to explain true_type to the chat, and I really feel like the wording of that explanation was WAY more confusing than it should have been... "It's true that it's true if the true_type is true" 😵
@Moriadin2 жыл бұрын
true
@VivekYadav-ds8oz2 жыл бұрын
I should've just stick with template " class ClassName { ...};"
@glugofernando3 жыл бұрын
good tutorial
@lawrencaclemens28543 жыл бұрын
thank you!!!
@CppCon3 жыл бұрын
Welcome!
@anatheistsopinion99743 жыл бұрын
Interesting
@longdao953 Жыл бұрын
Thanks
@childhood18882 жыл бұрын
So I went and watched Dr. Brown video and now I am facing the delimma, do I need to watch this one?
@lexshardaduriz10363 жыл бұрын
Excellent :)
@Jacob0112 жыл бұрын
13:31 Why on Earth do you have IntIdentity::value, when your static member is called my_value ????
@IshakHeor3 жыл бұрын
Am I missing something? I can not use the "auto " in the templates
@_supervolcano3 жыл бұрын
I recognize that I am five months late with this reply, but you were likely using an older version of c++. Auto was introduced with c++11, and expanded with c++14. Maybe expanded again with c++17, who the hell even knows.
@yuanjunren5220 Жыл бұрын
This is introduced in C++17, and you can find it out using keyword "non-type template parameter type deduction".
@yupeng884711 ай бұрын
After watching the whole video, I still don't get it.