Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1799 from miscco/no_throw
Browse files Browse the repository at this point in the history
Remove remnants of `throw()`
  • Loading branch information
miscco authored Sep 26, 2022
2 parents f6bc2ea + 43d0ccd commit d3e6fa1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion thrust/system/detail/bad_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions thrust/system/detail/system_error.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down
4 changes: 2 additions & 2 deletions thrust/system/system_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit d3e6fa1

Please sign in to comment.