Is the following the only way to correctly use Implement Virtual Methods?
1. Go to header file.
2. Move cursor to class name
3. Open Refactor context menu and select Implement Virtual Methods.
I ask this because when I open Implement Virtual Methods under a class name in cpp file, for example under Tree in the following code:
void Tree::foo() {
}
Then VA merely inserts the following in the cpp file:
virtual void grow() override
{
}
Now the 1st problem. Notice the invalid virtual and override, and more importantly, the missing class. The correct code should be:
void Tree::grow()
{
}
And the 2nd problem, VA does not insert declaration of grow() to the header too.