nice contribution, I wished I had had something like this in the early stages of my project. It would have saved some sleepless nights of trial and error. You should put it into the wiki, where the C++ section needs some examples like this.