Link to home
Create AccountLog in
Avatar of farzanj
farzanjFlag for Canada

asked on

C++ inheritance destructor

I have the following data members in a parent class.  I did not create a destructor and the gcc compiler complained like virtual method but no virtual destructor.  So I created a destructor. What should be contained in the destructor?


     string* tokens;

    string* terminals;

    string* results;

    bool*   direction;

    bool*   required;

    string* filters;

    //Raw data before parsing
    string  rdata;

    //Count of tokens, terminals, directions
    int     token_count;
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of farzanj

ASKER

Increasing points.

Thank you everyone.