So, I found this quote today, can anyone explain?
“If you think C++ is not overly complicated, just what is a protected abstract virtual base pure virtual private destructor and when was the last time you needed one?
— Tom Cargill”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe it is a private pure virtual destructor (I think that part is self-explanatory) that is part of an abstract base class, which you’ve used through protected virtual inheritance. .
From the point of view of tag B, the line at tag A is a “protected abstract virtual base pure virtual private destructor”,
Each of those three parts has its uses individually. I do not know of a design pattern that requires all three of the above parts, but there’s nothing preventing their uses together.