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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -