What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 130 Stack Exchange communities.

I asked this specific question about the use of std::shared_ptr in C++ code but incorrectly specified a major detail in the example code. Once I changed the question, the highest-voted answer (which said that I shouldn't have the problem I was having) no longer applies. Someone else has answered the new version of the question very well and I marked it as the answer. But the answer that no longer applies still has more votes. What should I do so it doesn't confuse or mislead those that visit the question in the future?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

In this case I would not edit the high-voted answer, but rather leave a comment on the high-voted answer explaining that your edit invalidated the answer. I would also leave a comment on the accepted answer explaining why that answer was accepted and not the high-voted answer.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .