Skip to content

Commit e2abc78

Browse files
authored
throw() -> noexcept
`throw()` has been deprecated since C++11 and is removed in C++20. `noexcept` is accepted alternative.
1 parent 0f2b6c1 commit e2abc78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dlib/any/storage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace dlib
2525
!*/
2626

2727
public:
28-
virtual const char * what() const throw()
28+
virtual const char * what() const noexcept
2929
{
3030
return "bad_any_cast";
3131
}

0 commit comments

Comments
 (0)