Explore six different approaches to implementing a Math Expressions Calculator in C++ through this comprehensive conference talk from CppCon 2023. Delve into the tradeoffs between runtime polymorphism using virtual functions and static polymorphism with Templates. Begin with basic pointer-based polymorphism, progress to smart pointers, compare unique_ptr and shared_ptr usage, and investigate templates and variadic templates. Cover additional topics such as template specialization, constexpr, type traits, and C++20 concepts. Gain insights into C++'s multi-paradigm power and learn valuable implementation strategies for modeling diverse entity behaviors, applicable to C++ developers of all levels.
Overview
Syllabus
Six Ways for Implementing Math Expressions Calculator in C++ - Amir Kirsh - CppCon 2023
Taught by
CppCon