a65e84e796fadd1389a798f2235cb593c44a846e
Extend the Ex42 observer pattern with Hint objects so each observer receives the reason for the update instead of querying the subject: - Subject::notify() and Observer::update() now take a const Hint& argument. - Add LightHint and WaitHint carrying the traffic light state and WAIT button state, defined in Pelican.h. - Pole dispatches on hint type using dynamic_cast. - The Pole constructor sets its initial lights directly from the Pelican's current state, since no notification is sent at startup. Stopgap until the initial update is handled properly. Co-authored-by: Qwen 3.8 27B <qwen3.8_27b-q3_k_xl@lmstudio.local>
cppcourse
Course material for a C++ course: lecture notes, exercises, and runnable code examples in modern C++ (C++23), built and run on Linux.
The repository is in a startup phase; content will be added as the course develops. Coding conventions and agent instructions live in AGENTS.md.
Languages
C++
91.2%
HTML
6.5%
CMake
2%
Makefile
0.3%