Learn Backend Development Part-Time, Online
Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Overview
Google, IBM & Meta Certificates – 40% Off
One plan covers every Professional Certificate on Coursera.
Unlock All Certificates
Explore the intricacies of type enforcement in C++ programming through this ACCU 2021 conference talk. Delve into the challenge of implementing methods that return different types for similar operations, focusing on the example of a Point class. Learn how to enforce compile-time type correctness using advanced C++ features such as if constexpr and template techniques. Discover the nuances of adding points and calculating average locations while maintaining meaningful results. Gain insights from Amir Kirsh, a C++ lecturer and expert, as he demonstrates practical code examples and discusses the importance of types in ensuring program correctness.
Syllabus
The Point Challenge - Returning Different Types for the Same Operation - Amir Kirsh - [ ACCU 2021 ]
Taught by
ACCU Conference