aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/handle.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-06-25 19:16:25 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-06-25 19:59:34 +0300
commit8ae25c7b5890aefd9dad96c1d700e5a1768fb638 (patch)
treedcce1135460f8bbe3eaf265f6cd8a068f524af4b /src/handle.hpp
parentREADME update (diff)
downloadprivilege-check-8ae25c7b5890aefd9dad96c1d700e5a1768fb638.tar.gz
privilege-check-8ae25c7b5890aefd9dad96c1d700e5a1768fb638.zip
code style
Diffstat (limited to 'src/handle.hpp')
-rw-r--r--src/handle.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/handle.hpp b/src/handle.hpp
index 282e35d..99b5292 100644
--- a/src/handle.hpp
+++ b/src/handle.hpp
@@ -61,8 +61,14 @@ private:
Handle(const Handle&) = delete;
};
+inline void swap(Handle& a, Handle& b) noexcept
+{
+ a.swap(b);
+}
+
namespace std
{
+ template <>
inline void swap(Handle& a, Handle& b) noexcept
{
a.swap(b);