From e40169e87f2d705d0dfc7b4a29c622b0d3204d26 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 24 Oct 2020 00:57:06 +0300 Subject: Handle: add get()/ptr() --- include/winapi/handle.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/winapi/handle.hpp b/include/winapi/handle.hpp index 536de26..7c10735 100644 --- a/include/winapi/handle.hpp +++ b/include/winapi/handle.hpp @@ -28,7 +28,10 @@ public: void swap(Handle& other) BOOST_NOEXCEPT_OR_NOTHROW; - explicit operator HANDLE() const { return m_impl.get(); } + HANDLE get() const { return m_impl.get(); } + HANDLE ptr() const { return get(); } + + explicit operator HANDLE() const { return ptr(); } bool is_invalid() const; static bool is_invalid(HANDLE); -- cgit v1.2.3