diff options
Diffstat (limited to 'include/winapi/file.hpp')
-rw-r--r-- | include/winapi/file.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/winapi/file.hpp b/include/winapi/file.hpp index 3dcd0d1..b9688e9 100644 --- a/include/winapi/file.hpp +++ b/include/winapi/file.hpp @@ -15,8 +15,6 @@ namespace winapi { class File : private Handle { public: - explicit File(Handle&& handle) : Handle{std::move(handle)} {} - static Handle open_r(const std::string&); static Handle open_r(const CanonicalPath&); static Handle open_w(const std::string&); @@ -25,6 +23,8 @@ public: static void remove(const std::string&); static void remove(const CanonicalPath&); + explicit File(Handle&& handle) : Handle(std::move(handle)) {} + using Handle::close; using Handle::read; |