Rationale behind requiring ampersand and fully qualified name to form a member function pointer

  • Thread starter Alexander Grigoriev
  • Start date
A

Alexander Grigoriev

I hope Mr. Stroustrup can give an answer to this question:

What was rationale behind the requirements to use an ampersand and a fully
qualified name of a function, to form a pointer to a member function? Is
there any syntax ambiguity without those? MS C++ compiler is quite happy
when a plain function name is used (I haven't tried it in ANSI compliance
mode, though), so for long time I've been pretty sure that it's OK...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top