]> sigrok.org Git - libsigrok.git/blobdiff - bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp
C++: Use noexcept instead of throw()
[libsigrok.git] / bindings / cxx / include / libsigrokcxx / libsigrokcxx.hpp
index e93a5fb5942f5b4b8689824840ef21d8cd5bbd6d..c36ee2928bc3f5890dd7071def7d2dbc35438eb4 100644 (file)
@@ -121,9 +121,9 @@ class SR_API Error: public exception
 {
 public:
        explicit Error(int result);
-       ~Error() throw();
+       ~Error() noexcept;
        const int result;
-       const char *what() const throw();
+       const char *what() const noexcept;
 };
 
 /* Base template for classes whose resources are owned by a parent object. */