diff options
Diffstat (limited to '')
| -rw-r--r-- | include/winapi/handle.hpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/include/winapi/handle.hpp b/include/winapi/handle.hpp index 23e5a3c..c0f85f4 100644 --- a/include/winapi/handle.hpp +++ b/include/winapi/handle.hpp @@ -27,10 +27,17 @@ public: Handle() = default; explicit Handle(HANDLE); - HANDLE get() const { return m_impl.get(); } - HANDLE ptr() const { return get(); } + HANDLE get() const { + return m_impl.get(); + } - explicit operator HANDLE() const { return ptr(); } + HANDLE ptr() const { + return get(); + } + + explicit operator HANDLE() const { + return ptr(); + } bool is_valid() const; static bool is_valid(HANDLE); @@ -89,7 +96,9 @@ public: } void inherit(bool yes = true) const; - void dont_inherit() const { inherit(false); } + void dont_inherit() const { + inherit(false); + } private: struct Close { |
