C++17 Features Used in plog

C++17 Features Used in plog plog is a relatively lightweight logging library primarily based on C11/14, which **does not heavily rely on C17**, but it does support and utilize some C++17 features. 1. Inline Variables The inline variable feature introduced in C++17 allows the definition of global variables in header files without violating the ODR … Read more

Mastering the Essence of C++ Class Design: static and const Methods

Mastering the Essence of C++ Class Design: static and const Methods

Series: In-Depth C++ Advanced Programming 🤔 Do You Really Understand static and const? // 😵 Common Confusing Code class ConfusingClass { private: static int count; // Does this need to be defined outside the class? const int value; // Can this be initialized outside the constructor? static const int MAX; // Can this be initialized … Read more