Git repo for the video C++ Structured Bindings: How, Why, and Why not.
By Elise++
This repo contains all the code files shown in the video C++ Structured Bindings: How, Why, and Why not. It shows how structured bindings can make code shorter and more readable. It also covers some common pitfalls and when you'd want to avoid using them.
Build the project using cmake and a compiler with C++ 20 abilities. Most modern compilers should work. Making the file will result in the unit tests getting executed automatically.
git clone https://github.com/EliseBriers/cpp-structured-bindings
cd cpp-structured-bindings
mkdir build
cd build
cmake ..
cmake --build .
The easiest way to build and run the project on windows is opening it in a recent version of Vidual Studio. This project has been tested using Visual Studio 2022.