diff options
author | Jordan Maples <jomaples@microsoft.com> | 2020-03-04 04:04:46 +0300 |
---|---|---|
committer | Jordan Maples <jomaples@microsoft.com> | 2020-03-04 04:04:46 +0300 |
commit | 769f01900dbf58ffa96b987e37cd169e371d005b (patch) | |
tree | abccdc85f96f9545c911281281fafa473bd7104c /include | |
parent | 4b643918a1db246e6c7f7d9ad6ae3da5de6fb176 (diff) |
moving exception include
Diffstat (limited to 'include')
-rw-r--r-- | include/gsl/gsl_assert | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/include/gsl/gsl_assert b/include/gsl/gsl_assert index 7a9e8ad..ac87ef4 100644 --- a/include/gsl/gsl_assert +++ b/include/gsl/gsl_assert @@ -17,8 +17,6 @@ #ifndef GSL_CONTRACTS_H #define GSL_CONTRACTS_H -#include <exception> - // // make suppress attributes parse for some compilers // Hopefully temporary until suppression standardization occurs @@ -47,6 +45,10 @@ #pragma clang diagnostic ignored "-Winvalid-noreturn" #endif +#else + +#include <exception> + #endif #define GSL_STRINGIFY_DETAIL(x) #x @@ -110,14 +112,6 @@ namespace details #endif } - template <typename Exception> - [[deprecated("GSL no longer supports throwing for contract violations. Use gsl::details::terminate() instead.")]] - [[noreturn]] void throw_exception(Exception&&) noexcept - { - gsl::details::terminate(); - } - - } // namespace details } // namespace gsl |