Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I just did; what I couldn't figure out, was is there a way to specify multiple different exception types in your C++ throw()?

In Java, you can do:

public int myfunc(int a, int b) throws IOException, InvalidGoatException {}

How would you do this in C++?



You can do much the same thing, only the meaning is the reverse.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: