From 184dc33aa5cdca7a6d9852e906b849c52b45a0d8 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 28 Jul 2016 15:50:29 +0200 Subject: [PATCH] noexcept specifiers on destructors --- src/uvw/emitter.hpp | 2 +- src/uvw/fs.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uvw/emitter.hpp b/src/uvw/emitter.hpp index bf723584..38dfc05a 100644 --- a/src/uvw/emitter.hpp +++ b/src/uvw/emitter.hpp @@ -18,7 +18,7 @@ namespace uvw { template class Emitter { struct BaseHandler { - virtual ~BaseHandler() = default; + virtual ~BaseHandler() noexcept = default; virtual bool empty() const noexcept = 0; }; diff --git a/src/uvw/fs.hpp b/src/uvw/fs.hpp index a4c18d76..aadf88f1 100644 --- a/src/uvw/fs.hpp +++ b/src/uvw/fs.hpp @@ -307,7 +307,7 @@ public: return std::shared_ptr{new FsReq{std::forward(args)...}}; } - ~FsReq() { + ~FsReq() noexcept { uv_fs_req_cleanup(get()); }