Skip to content
0:00 / 0:00

#c++#templates#metaprogramming

Modern Template Techniques - Jon Kalb - Meeting C++ 2019

Meeting Cpp

38K subscribers • 32 videos on Hallway • Conference channel

YouTube
  • One of the most-watched uploads on Meeting C++, a conference or university channel Hallway lists. Nobody has recommended it in the communities yet, so it ranks below community picks.
  • Presented by Jon Kalb
  • Linked in the descriptionSlides on meetingcpp.com

Advanced. Deep dive for people who know the field.

17K views6 years ago

Programming languagesC++

Jon Kalb explores advanced template metaprogramming techniques in modern C++.

Modern Template Techniques - Jon Kalb - Meeting C++ 2019 Slides: meetingcpp.com/mcpp/slides

Why it's here

A top upload from a listed channel

Meeting C++ is on Hallway's list of conference and university channels, and this upload is one of its most-watched talks or lectures. Nobody has recommended it in the communities yet, so it ranks below community picks.

Moments people linked to

flowiton Stack Overflow • Mentions

At Meeting C++ 2019, Jon Kalb gave a talk about template techniques and mentioned policy classes. See here for the source: link to this video The interesting code snippet in question is: template<class T, class CheckingPolicy> struct MyContainer : private CheckingPolicy { ... } I've seen this type of design quite often and I was wondering if inheritance here has any real advantages over composition. In my personal experience I've heard much about the Prefer composition over inheritance paradigm. So the way I would have written the code would be more like this: template<class T, class CheckingPolicy> struct MyContainer { CheckingPolicy policy; ... } There wouldn't be any virtual functions i…
8View the answer