This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Certainly not. But if such a pointer to member was final and bound to a known function, GCC might be able to short-curcuit function calls through it, and even inline them. But since, for a virtual function, it is not possible to know the exact function that is going to be called unless you happen to know the dynamic type of the object, you lose. With final, you'd win.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |