If I create a struct:
struct joinpoint_exception: exception
{
virtual const char* what () const throw ();
};
What does what () const throw () means in this context?
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.
whatis a virtual member function returning a pointer to constantcharwhich is itself constant and throws nothing.(Technically the function can still throw, but if it does, it goes directly to
std::unexpected, which defaults to callingstd::terminate)