Hi,
I've just came across declaration of this form:
void fun() throw();
Could anyone explain what is the pourpose of this and maybe someone knows good book with thorough explanaition on this subject.
Thank you
Hi,
I've just came across declaration of this form:
void fun() throw();
Could anyone explain what is the pourpose of this and maybe someone knows good book with thorough explanaition on this subject.
Thank you
Having a hard time using Google?
My first advice before starting a new thread is: STFW first!
http://www.learncpp.com/cpp-tutorial/154-uncaught-exceptions-catch-all-handlers-and-exception-specifiers/
(Exception specifiers)
But I suggest you to read the two previous pages first.
Having a hard time using Google?
My first advice before starting a new thread is: STFW first!
Well, first I would like to thank you for your help, secondly - I really don't like wasting my time searching through tens of pages from google results and reading sometimes pointless dabates and discussion of people who very often don't know what they are really talking about. I'd prefer to ask experts and if possible get if not answer at least a hint or direction where shall I start my search or what shall I try to read. Thats why I asked this question on this forum and used google.
As for STFW - absolutely no clue what it means;)
"void fun() throw();"
That declaration tells compiler that this function , fun(), won't throw
any exception.
Similarly :
void fun() throw(myException& m);
Tells compiler and user that this function could throw a exception
shown.
As for STFW - absolutely no clue what it means;)
Just because you'll most likely encounter it again in your first next thread: http://catb.org/esr/faqs/smart-questions.html#answers
RTFM and STFW are no mistery for me anymore!!!
Thankx tux4life!;)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.