When your C++ projects grow a little, you may find yourself needing to log the state of objects. There are two ways of doing this (assuming that you'll want to log the data the same way each time).
The wrong way is writing logging code that knows everything about your