aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-21 21:19:57 +0200
committerDavid Robillard <d@drobilla.net>2020-10-21 21:24:42 +0200
commit336ab6bcf31df95edccc8bafce11149650ddeb46 (patch)
tree0e748f05120d711ce0a8d19cd6a8f98d8683ca8d /include
parent244a0a5b3fb1b03a4165e523f549cfecaca6187d (diff)
downloadpugl-336ab6bcf31df95edccc8bafce11149650ddeb46.tar.gz
pugl-336ab6bcf31df95edccc8bafce11149650ddeb46.tar.bz2
pugl-336ab6bcf31df95edccc8bafce11149650ddeb46.zip
Add noexcept annotations to C++ Wrapper base class
Diffstat (limited to 'include')
-rw-r--r--include/pugl/pugl.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/pugl/pugl.hpp b/include/pugl/pugl.hpp
index d62ecca..2097534 100644
--- a/include/pugl/pugl.hpp
+++ b/include/pugl/pugl.hpp
@@ -64,14 +64,14 @@ public:
Wrapper(const Wrapper&) = delete;
Wrapper& operator=(const Wrapper&) = delete;
- Wrapper(Wrapper&&) = default;
- Wrapper& operator=(Wrapper&&) = default;
+ Wrapper(Wrapper&&) noexcept = default;
+ Wrapper& operator=(Wrapper&&) noexcept = default;
- T* cobj() { return _ptr.get(); }
- const T* cobj() const { return _ptr.get(); }
+ T* cobj() noexcept { return _ptr.get(); }
+ const T* cobj() const noexcept { return _ptr.get(); }
protected:
- explicit Wrapper(T* ptr)
+ explicit Wrapper(T* ptr) noexcept
: _ptr(ptr, Deleter<T, Free>{})
{}
@@ -202,7 +202,7 @@ static_assert(Status(PUGL_UNSUPPORTED_TYPE) == Status::unsupportedType, "");
/// @copydoc puglStrerror
static inline const char*
-strerror(const pugl::Status status)
+strerror(const pugl::Status status) noexcept
{
return puglStrerror(static_cast<PuglStatus>(status));
}