summaryrefslogtreecommitdiff
path: root/src/cxpp11_common.hpp
AgeCommit message (Collapse)Author
2017-10-14Various fixes to make the host code and sample compile with the CUDA APICedric Nugteren
2016-10-23Added a fix for compilation under Visual Studio 2013 related to the new ↵Cedric Nugteren
exception classes
2016-10-22Added documentation for the better exception handlingCedric Nugteren
2016-10-22treewide: use C++ exceptions properlyIvan Shapovalov
Since the codebase is designed around proper C++ idioms such as RAII, it makes sense to only use C++ exceptions internally instead of mixing exceptions and error codes. The exceptions are now caught at top level to preserve compatibility with the existing error code-based API. Note that we deliberately do not catch C++ runtime errors (such as `std::bad_alloc`) nor logic errors (aka failed assertions) because no actual handling can ever happen for such errors. However, in the C interface we do catch _all_ exceptions (...) and convert them into a wild-card error code.