summaryrefslogtreecommitdiffstats
path: root/contrib/python/marisa-trie/py3/patches/01-throw.patch
blob: 427f7929d363398dc8930e47d207b09b69d769ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- contrib/python/marisa-trie/py3/marisa-trie/include/marisa/exception.h	(index)
+++ contrib/python/marisa-trie/py3/marisa-trie/include/marisa/exception.h	(working tree)
@@ -19,7 +21,7 @@ class Exception : public std::exception {
   Exception(const Exception &ex)
       : std::exception(), filename_(ex.filename_), line_(ex.line_),
         error_code_(ex.error_code_), error_message_(ex.error_message_) {}
-  virtual ~Exception() throw() {}
+  virtual ~Exception() {}
 
   Exception &operator=(const Exception &rhs) {
     filename_ = rhs.filename_;
@@ -42,7 +44,7 @@ class Exception : public std::exception {
     return error_message_;
   }
 
-  virtual const char *what() const throw() {
+  virtual const char *what() const noexcept {
     return error_message_;
   }