Learn AI, Data Science & Business — Earn Certificates That Get You Hired
AI Engineer - Learn how to integrate AI into software applications
Overview
AI, Data Science & Cloud Certificates from Google, IBM & Meta — 40% Off
One plan covers every Professional Certificate on Coursera. 40% off Coursera Plus Annual.
Unlock All Certificates
Learn the intricacies of declaring constants in C++ through this comprehensive conference talk that explores the surprisingly complex world of constant declarations. Discover the various approaches to defining constants, including global variables, local variables, static class data members, and templates, while understanding how to choose the most suitable method for your specific use case. Explore the nuances of linkage and storage duration, and master the proper use of specifiers such as static, inline, and constexpr in different scenarios. Examine when and how to use extern declarations and understand how constant declarations interact with C++ modules. Navigate through the complexities that make even simple constant declarations challenging in C++, gaining clarity on a topic that often confuses developers due to the language's flexibility and numerous options for achieving similar outcomes.
Syllabus
How to declare a constant in C++ - Mikhail Matrosov - NDC TechTown 2025
Taught by
NDC Conferences