|
| template<typename Exception > |
| void | mgis::raise () |
| | a small wrapper used to build the exception outside the throw statement. As most exception's classes constructors may throw, this avoids undefined behaviour as reported by the cert-err60-cpp warning of clang-tidy (thrown exception type is not nothrow copy constructible).
|
| |
|
template<typename Exception , typename... Args> |
| void | mgis::raise (Args &&... a) |
| |
| template<typename Exception > |
| void | mgis::raise_if (const bool c) |
| | raise an exception if the first argument is true.
|
| |
|
template<typename Exception , typename... Args> |
| void | mgis::raise_if (const bool c, Args &&... a) |
| |