Moved to VS2019, virtual destructor option no longer there

Viewed 204

Since moving to Visual Studio 2019, when adding a item class there is no longer an option for virtual destructor. Is there an option to re-enable it?

I don't really know how I should compensate for this. Ty in advance

before:

Before

Now:

After

1 Answers

Solved, still dont know why the feature is gone. But just add the deconstructor yourself.

Here's an example

class Game
{
public:
    Game();             //constructor
    virtual ~Game();    //destructor
};

Related