Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 155 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

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
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 .