MGIS
Loading...
Searching...
No Matches
Raise.ixx File Reference
#include <cstdlib>

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.
 

Functions

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)
 

Detailed Description

Author
Thomas Helfer
Date
20/06/2018