12

The tag is so rarely used that it has only 6 questions and no wiki. Looks like it was created in this question: How to pass a member function as a parameter and execute list of methods on derived object

OTOH has a lot more questions with a much more detailed wiki. IMHO should be made a synonym of this. Or should be removed?

4
  • Yeah, [pointer-to-member-functions] is unnecessary, removing it seems good. The 6 posts can be retagged, and the tag will get roombaed I think.
    – cigien
    Commented Dec 1, 2020 at 3:32
  • 4
    You know you've been successful when your product makes the jump from noun to verb. Commented Dec 1, 2020 at 18:34
  • 1
    We should handle member-function-pointers at the same time. It has a poorer wiki than pointer-to-member, but 3X questions.
    – cigien
    Commented Dec 2, 2020 at 2:42
  • 10
    How is it that this question is not called “Pointing out that [pointer-to-member-functions] should be a member of [pointer-to-member]”?? Commented Dec 2, 2020 at 15:03

1 Answer 1

4

There are really three tags under consideration: , , and , all from C++.

According to the C++ standard (https://eel.is/c++draft/basic.compound#1.8)

Pointers to data members and pointers to member functions are collectively called pointer-to-member types.

So all three tags are the same thing.

should be the main tag, and the other two can be synonyms for it.

6
  • 3
    Wrong. eel.is/c++draft/basic.compound#1.8 "Pointers to data members and pointers to member functions are collectively called pointer-to-member types" And the main tag should follow the Standard verbiage.
    – Ben Voigt
    Commented Dec 2, 2020 at 19:18
  • @BenVoigt I've updated my response, including your link. Commented Dec 2, 2020 at 19:27
  • Pointer to data member and pointer to member function are distinct. "Pointer to member" includes both. I think you may have been using "pointer to member" only for data members. The volume of questions isn't high enough to be worth having separate tags for pointers to data members and pointers to member functions... as well there are a number of topics that relate to both at the same time, such as how pointers to members work in the presence of virtual inheritance.
    – Ben Voigt
    Commented Dec 2, 2020 at 19:29
  • @BenVoigt I've looked but I can't find a tag for pointers to data members. Does it exist, and I'm not finding it? Questions like this could do with that tag.
    – cigien
    Commented Dec 2, 2020 at 19:34
  • @cigien: Like I said, there aren't enough questions to be worth having separate tags for the two different kinds of pointer to member. pointer-to-member is perfect for that question.
    – Ben Voigt
    Commented Dec 2, 2020 at 19:36
  • @BenVoigt Ok, fair enough. A search for "pointers to data members" yields a lot of results, but I guess a lot of them would be FPs. I haven't looked in detail. The current answer makes the most sense then.
    – cigien
    Commented Dec 2, 2020 at 19:38

You must log in to answer this question.

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