C++ Virtual Method -


if create struct:

struct joinpoint_exception: exception {     virtual const char* () const throw (); }; 

what what () const throw () means in context?

what virtual member function returning pointer constant char constant , throws nothing.

virtual const char* () const throw (); |-----| <- virtual member function         |---------| <- returning pointer constant chars                     |-----| <- named                             |---| <- constant                                   |-------| <- not throw 

(technically function can still throw, if does, goes directly std::unexpected, defaults calling std::terminate)


Comments

Popular posts from this blog

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

jQuery Ajax Render Fragments OR Whole Page -

java - Why is BlockingQueue.take() not releasing the thread? -