diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-27 13:17:26 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-27 13:18:45 +0300 |
commit | 0c62070b24273e565cce112ab061df6665d3ae8c (patch) | |
tree | a9a36ef593871daef57986fbfbbfb44de8c1116d /include/winapi/handle.hpp | |
parent | Boost.Test is broken in 1.62 (diff) | |
download | winapi-common-0c62070b24273e565cce112ab061df6665d3ae8c.tar.gz winapi-common-0c62070b24273e565cce112ab061df6665d3ae8c.zip |
code style
Don't use brace initialization in constructors, VS 2013 doesn't like
that.
Diffstat (limited to 'include/winapi/handle.hpp')
-rw-r--r-- | include/winapi/handle.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/winapi/handle.hpp b/include/winapi/handle.hpp index 7c10735..cd114d5 100644 --- a/include/winapi/handle.hpp +++ b/include/winapi/handle.hpp @@ -25,8 +25,8 @@ public: Handle(Handle&& other) BOOST_NOEXCEPT_OR_NOTHROW; Handle& operator=(Handle other) BOOST_NOEXCEPT_OR_NOTHROW; - void swap(Handle& other) BOOST_NOEXCEPT_OR_NOTHROW; + Handle(const Handle&) = delete; HANDLE get() const { return m_impl.get(); } HANDLE ptr() const { return get(); } @@ -65,8 +65,6 @@ private: }; std::unique_ptr<void, Close> m_impl; - - Handle(const Handle&) = delete; }; inline void swap(Handle& a, Handle& b) BOOST_NOEXCEPT_OR_NOTHROW { |