I got this edit rejected: https://stackoverflow.com/review/suggested-edits/15945932 The original answer links to code from an external source and does not reproduce the code from there correctly. For this reason, the original answer does not compile. In my edit, I reproduce the code correctly so that it can compile. I find myself going to my rejected edit to remember how was the correct code. I do not agree that it should be posted as a comment since the original answer (in my opinion) is incorrect.