Taka Muraoka wrote:
Virtual functions let an object decide at runtime which particular implementation of a method should be invoked. If you have a pointer to the base object and call a virtual method, there is no way to know at compile time what type of object will be present at the actual time of the call. Hence, the compiler won't be able to figure out which implementation of the function to compile inline
This is of course, correct. However, if you use an object of the class in a non-polymorphic manner (say, create it on the stack), the compiler can figure out which object is used and inline the function. Therefore, "virtual inline" actually makes sense, and will not be ignored ;)
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.