Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/NVIDIA/thrust.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schellenberger Costa <miscco@nvidia.com>2022-09-26 12:11:50 +0300
committerGitHub <noreply@github.com>2022-09-26 12:11:50 +0300
commitd3e6fa14484746cb8cf72c9c2e2dcaa83728986d (patch)
tree146120f89fb445ef68e9e8b0c2bbf1adb79b0fdf
parentf6bc2ea5d8bf940902c7f0e211b2f00930ef3737 (diff)
parent43d0ccdefe9b1e4e3faaa8b465bb7ff7c77c53fa (diff)
Merge pull request #1799 from miscco/no_throw
Remove remnants of `throw()`
-rw-r--r--thrust/system/detail/bad_alloc.h2
-rw-r--r--thrust/system/detail/system_error.inl4
-rw-r--r--thrust/system/system_error.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/thrust/system/detail/bad_alloc.h b/thrust/system/detail/bad_alloc.h
index d568b028..09d17311 100644
--- a/thrust/system/detail/bad_alloc.h
+++ b/thrust/system/detail/bad_alloc.h
@@ -43,7 +43,7 @@ class bad_alloc
inline virtual ~bad_alloc(void) throw () {};
- inline virtual const char *what(void) const throw()
+ inline virtual const char *what(void) const noexcept
{
return m_what.c_str();
} // end what()
diff --git a/thrust/system/detail/system_error.inl b/thrust/system/detail/system_error.inl
index 787bf30d..075fe88e 100644
--- a/thrust/system/detail/system_error.inl
+++ b/thrust/system/detail/system_error.inl
@@ -76,14 +76,14 @@ system_error
const error_code &system_error
- ::code(void) const throw()
+ ::code(void) const noexcept
{
return m_error_code;
} // end system_error::code()
const char *system_error
- ::what(void) const throw()
+ ::what(void) const noexcept
{
if(m_what.empty())
{
diff --git a/thrust/system/system_error.h b/thrust/system/system_error.h
index cf613933..226ff9b4 100644
--- a/thrust/system/system_error.h
+++ b/thrust/system/system_error.h
@@ -146,13 +146,13 @@ class system_error
* \return <tt>ec</tt> or <tt>error_code(ev, ecat)</tt>, from the
* constructor, as appropriate.
*/
- inline const error_code &code(void) const throw();
+ inline const error_code &code(void) const noexcept;
/*! Returns a human-readable string indicating the nature of the error.
* \return a string incorporating <tt>code().message()</tt> and the
* arguments supplied in the constructor.
*/
- inline const char *what(void) const throw();
+ inline const char *what(void) const noexcept;
/*! \cond
*/