I just closed another question as a duplicate of this one, but when reading through what the top answer was - something is totally off here. This is (as of this writing) a +73 question with a +77 answer that doesn't at all answer the question and has been wrong for nearly the entirety of the question's existence.
The timeline helps explain what happened:
- May 31, 2010 8:55am - question is asked about passing an overloaded free function
- 8:57am - answer is posted answering the question. The answer was correct.
- 9:12am - question is edited to ask about member functions instead
- 9:12am - note added to answer about dealing with member functions (it's unclear if the note was just a followup edit to the answer or a response to the question edit).
The note added to the answer is insufficient to actually answer the question as it currently stands. So the answer is just... wrong. Most of its upvotes have come long after the question changed to be about member functions too.
So... what do you do here? One option I've considered is that since none of the answers directly answer the question with regards to member functions (three provide solutions that work with both versions of the question, two only work with free functions) is to actually roll back the question to ask about free functions instead. Does that seem legit?
Or just do nothing?
mem_fn
comment so that it works for the member function case. But mostly leaning towards: do nothing.