3 ms·
> @davedx asks : is there a way to specify multiple different exception types in your C++ throw()? yeah throw() can contain multiple types that can possibly be
by signa11 15y ago
> @davedx asks : is there a way to specify multiple different exception types in your C++ throw()?
yeah throw() can contain multiple types that can possibly be emitted e.g. int foo() throw(a,b,c,d) implies that foo can only throw either a/b/c/d types.
- Peaker 15y agoExcept that is only enforced at runtime, and converts the exception type to unexpected_exception, which is even worse!