Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

C++17 introduced inline variables. Inline variables can appear in headers as they are permitted multiple definitions (as long as there is only one per unit and all definitions are the same). One of the notable use cases of inline variables is for customization function objects (Niebloids) since non-function symbols inhibit ADL lookup. Compiler Explorer link: https://lnkd.in/erimp6d4 #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text

To view or add a comment, sign in

Explore content categories