C++26 Reflection Annotations: Automated Member Validation

The post discusses exploring C++26, detailing setup on Ubuntu and features like template for, reflection, and JSON serialization. It introduces annotations as a powerful feature that simplifies validation in class constructors, ensuring values remain within specified ranges. This approach avoids error-prone manual validation when new class members are added.

C++26 Reflection: Simplifying JSON Serialization

The post discusses using the experimental C++26 reflection feature for JSON serialization of user-defined classes, specifically focusing on the CanDataSource class. It contrasts manual serialization approaches with the flexibility offered by reflection, allowing automatic updates in JSON output when class definitions change. Full source code is available on GitHub.