Consider In C++ objects: Should I be casting pointers with the parent class or should I be casting with the actual class itself. The initial question asked was about void*
s and got an answer specific to void*
s. That answer got upvoted, but there was a comment about never using void*
. OP decided to change the question to not use void*
at all - at which point I chimed in with an answer specific to the new, non-void*
question that obviated the original answer.
However, before I'd posted my answer, the question was reverted to the original question - and shortly thereafter OP accepted my answer to the now-reverted question to which my answer in no way applies. The question is - what to do about this question? Should I just delete my answer (edit: I guess I can't since it's been accepted)?