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
Post a Comment