Skip to content
0:00 / 0:00

#templates#sfinae#tagdispatch

C++ Templates - Part 2: Basic syntax, specialization, tag dispatch and SFINAE

oneproduct

2.2K subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.

Advanced. Deep dive for people who know the field.

25K views9 years ago1 recommendation

Programming languagesSystems programmingC++

How C++ templates work, covering specialization, tag dispatch, and SFINAE.

YouTube has removed the ability to add annotations, so I'm putting this in the description. I said I wasn't going to talk about dependent types (which I should actually call dependent names), but there's no reason not to. Some of the contents of a template may vary in meaning depending on the template type, so you have to specify when a name inside a template is referring to a type.

Why it's here

1 person recommends this

What people say. Recommended as a resource explaining the difference between tag dispatch and SFINAE in C++.

Moments people linked to

user2449761on Stack Overflow • Recommends

In this video link to this video "tag dispatch" and SFINAE are being presented as the alternatives, allowing to achieve selection of the desired template function. Is it correct? Isn't "tag dispatch" using SFINAE? If it's correct, what is the difference between SFINAE and tag dispatch exactly?
7View the answer