Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

The Point Challenge - Returning Different Types for the Same Operation

ACCU Conference via YouTube

Overview

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

Reviews

Start your review of The Point Challenge - Returning Different Types for the Same Operation

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.