Skip to content

Commit

Permalink
throw() -> noexcept (#108)
Browse files Browse the repository at this point in the history
`throw()` was deprecated in C++11 and removed in C++17. `noexcept` is the appropriate replacement.
  • Loading branch information
r-barnes authored Jul 31, 2024
1 parent 78e494f commit 5b94895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/include/CL/Utils/Error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ namespace util {
Error(cl_int err, const char* errStr = NULL): err_(err), errStr_(errStr)
{}

~Error() throw() {}
~Error() noexcept {}

/*! \brief Get error string associated with exception
*
* \return A memory pointer to the error message string.
*/
virtual const char* what() const throw()
virtual const char* what() const noexcept
{
if (errStr_ == NULL)
{
Expand Down

0 comments on commit 5b94895

Please sign in to comment.