Are there cases in which the inline keyword on a virtual method is not ignored by the compiler?
I am thinking for example to cases such as the following:
struct Interface
{
virtual void f() = 0;
};
struct Dummy : Interface
{
inline virtual void f() override {}
};
int main()
{
Dummy a;
a.f();
return 0;
}
Can code like this be optimized?