P
Paul
itaj sherman said:That's true.
It's not true, The pointer must be a pointer to an object. See my other
post.
When we enter the realm of calling nonstatic member functions withoutI'd think Paul meant code "with defined behaviour", not just "well
formed".
But then again, he didn't specify that clearly.
And as you mention in your previous post, he doesn't seem strict about
the difference between "defined" and "defined behaviour".
objects ,the whole thing becomes generally undefined at that point.
And his response to that certainly didn't clear that up:
Does Paul mean "undefined behaviour"?
Look ^^^^^^^^^^^^^^^^^^^^^^^
The standard is worded such that a nonstatic member function must be calledAgain, does Paul mean "undefined behaviour"?
on an object.
Any attempt to invoke the function without an object is not defined in the
standard.
I think it is both undefined by the standard, and also has undefined
behaviour.