class C
{
public:
virtual void f() final = 0;
};
To me this looks like a programming mistake. =0
says it has no implementation yet and must be overriden, but final
says that nobody can override it. So it will never have an implementation.
Do I miss something? I wonder that I don't get any warning for above code.