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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -