Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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