Back to Basics: Master the static, inline, const, and constexpr C++ Keywords - Andreas Fertig @CppCon
Back to Basics: Master the static, inline, const, and constexpr C++ Keywords - Andreas Fertig  @CppCon
Uploaded February 2026 | Updated September 2026, 2 weeks ago
https://cppcon.org​
---

Back to Basics: Master the static inline, const, and constexpr C++ Keywords - Andreas Fertig - CppCon 2025
---

C++ comes with a whole toolbox of keywords you can apply to types and functions. You think it's straightforward? My experience says otherwise. There are false-friends like static , which I often see misapplied.

In this talk, I will demystify those tricky little keywords. You'll learn what they really mean, how they behave in different contexts, and — most importantly — when to use them (and when not to). Think const, constexpr, consteval, constinit: yes, C++ has more flavors of constness than your local ice cream shop. We'll explore them all.

We'll go beyond syntax and dive into what's actually happening in the language.

While the talk includes some features from C++23, most of what we cover is rooted in C++11 or even classic C++98. We'll touch on important concepts like the One Definition Rule (ODR) and top-level qualifiers, giving you a deeper understanding of how these keywords shape your code.

After this session, you'll walk away knowing exactly where each keyword belongs. No more guesswork. Just the right keyword in the right place.
---

Slides: github.com/CppCon/CppCon2025/blob/main/Presentations/Back_To_Basics_static_inline_const_and_constexpr.pdf

Work at Hudson River Trading (HRT): tinyurl.com/safxfctf
---

Andreas Fertig

Andreas Fertig, CEO of Unique Code GmbH, is an experienced trainer and consultant for C++ for standards 11 to 23.

Andreas is involved in the C++ standardization committee, developing the new standards. At international conferences, he presents how code can be written better. He publishes specialist articles, e.g., for iX magazine, and has published several textbooks on C++.

With C++ Insights (https://cppinsights.io), Andreas has created an internationally recognized tool that enables users to look behind the scenes of C++ and thus understand constructs even better.

Before training and consulting, he worked for Philips Medizin Systeme GmbH for ten years as a C++ software developer and architect focusing on embedded systems.

You can find Andreas online at andreasfertig.com.
---


CppCon is the annual, week-long face-to-face gathering for the entire C++ community. The conference is organized by the C++ community for the community. You will enjoy inspirational talks and a friendly atmosphere designed to help attendees learn from each other, meet interesting people, and generally have a stimulating experience. Taking place this year in Aurora, Colorado, near the Denver airport, and including multiple diverse tracks, the conference will appeal to anyone from C++ novices to experts.
Annual CppCon Conference - cppcon.org
linkedin.com/company/cppcon
https://x.com/cppcon
facebook.com/CppConference
reddit.com/r/cppcon
https://mastodon.social/@CppCon
---

Videos Filmed & Edited by Bash Films: BashFilms.com
YouTube Channel Managed by Digital Medium Ltd: events.digital-medium.co.uk
---

#cpp #cplusplus #cppcon #cppprogramming #cplusplusprogramming #softwaredevelopment #softwareengineering #coding #code #computerscience #technology #technews #programming #programmer
Back to Basics: Master the static, inline, const, and constexpr C++ Keywords - Andreas FertigFrom Pure ISO C++20 To Compute Shaders - Koen Samyn - CppCon 2025Learn C++ Performance Secrets from a Bloomberg Engineer At CppCon 2025!Back to Basics: Rvalues and Move Semantics in C++ - Amir Kirsh - CppCon 2024Implement the C++ Standard Library: Design, Optimisations, Testing while Implementing Libc++Lightning Talk: Rust Programming in 5 Minutes - Tyler Weaver - CppCon 2024Lightning Talk: Do You Love or Hate Your C++ Build System? - Helen Altshuler - CppCon 2024Back to Basics: How to Refactor C++ Code - Amir KirshLightning Talk: DevSecOps for C++? Keep Calm and use Conan - Luis Caro Campos - CppCon 2024Lightning Talk: What LLMs Wont Ever be Able to Do - Ben Deane - CppCon 2024Unsatisfied with the C++ Standard Library? Join The Beman Project! - River WuAdventures with C++ Legacy Codebases: Tales of Incremental Improvement - Roth Michaels - CppCon 2024
CppCon |

Back to Basics: Master the static, inline, const, and constexpr C++ Keywords - Andreas Fertig

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER