Learn how modern C++ features like constexpr and consteval can enhance the code quality for embedded systems. The post explores parsing MAC addresses, using std::array for memory safety, std::expected for error handling, and the implementation of user-defined literals for compile-time evaluations.
Table of contents
Chapter One: What is a MAC address?Chapter Two: Parsing a MAC address string.Chapter Three: Why the constexpr ?Chapter Four: Your turn!Sort: