Will the following code compile?
struct A {
  virtual operator void() {}
};
Explanation
The virtual operator of type conversion to void is declared here.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
C++ quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes