aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/um/libservice/src/handle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'um/libservice/src/handle.cpp')
-rw-r--r--um/libservice/src/handle.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/um/libservice/src/handle.cpp b/um/libservice/src/handle.cpp
new file mode 100644
index 0000000..7567781
--- /dev/null
+++ b/um/libservice/src/handle.cpp
@@ -0,0 +1,27 @@
+// Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+// This file is part of the "Windows 7 drivers" project.
+// For details, see https://github.com/egor-tensin/windows7-drivers.
+// Distributed under the MIT License.
+
+#include "libservice/all.hpp"
+
+#include <utility>
+
+namespace libservice
+{
+ void swap(Handle& a, Handle& b) LIBSERVICE_NOEXCEPT
+ {
+ a.swap(b);
+ }
+}
+
+namespace std
+{
+ template <>
+ void swap<libservice::Handle>(
+ libservice::Handle& a,
+ libservice::Handle& b) LIBSERVICE_NOEXCEPT
+ {
+ a.swap(b);
+ }
+}