Forcing C++ compilers to check for exception handling

c++, exception

Solution

Since checked exceptions in Java rely on the `throw` signature, you can read why you will not want to use `throw` function signatures in C++ in this question on SO.

Problem

I was wondering if there is some compiler parameter, preferably in gcc (g++) which treats the lack of try/catch blocks as errors. This is the standard behavior in java and I was alway fond of it.

Original source

Related problems