Front
Consider a class and a global function:
This is for example usefulfuncts.hpp
void dosome(int a, int b) throw (std::exception);
This is usefulfuncts.cpp
void dosome(int a, int b) throw (std::exception) {
And this is aclass.hpp
class aclass {
After (what I would like)
Ok! I would like to understand whether you need to write strictly every time in the throw clause. So, for example, can I do this?
This is usefulfuncts.hpp
void dosome(int a, int b) throw (std::exception);
This is usefulfuncts.cpp
void dosome(int a, int b) {
And this is aclass.hpp
class aclass {
Is it correct? Put this only in the main declaration? Thanks
source share