C++Now 2017: Marshall Clow “The 'Detection idiom:' A Better Way to SFINAE"

Опубликовано: 26 Октябрь 2024
на канале: CppNow
5,242
63

http://cppnow.org

Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/boostcon/cppnow_pr...

Hidden in the Library fundamentals Technical Specification, there is a section called "Detection idiom". The specification doesn't really say what it is for, and it has not received a lot of notice.

That's a shame. This is an amazingly powerful method for distinguishing between kinds of types. Writing SFINAE constraints is tedious and confusing, and this makes it much easier to do.

This session will introduce the detection idiom, walk through how it works, and then give examples on how to use it.

Marshall has been programming professionally for 35 yearsHe is the author of Boost.Algorithm, and has been a contributor to Boost for more than 15 years. He is the chairman of the Library working group of the C++ standard committee. He is the lead developer for libc++, the C++ standard library for LLVM.

Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
---

*--*

---