diff options
Diffstat (limited to 'um/service/include/libservice/service_handle.hpp')
-rw-r--r-- | um/service/include/libservice/service_handle.hpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/um/service/include/libservice/service_handle.hpp b/um/service/include/libservice/service_handle.hpp index 2883ff3..52e37f4 100644 --- a/um/service/include/libservice/service_handle.hpp +++ b/um/service/include/libservice/service_handle.hpp @@ -64,13 +64,19 @@ namespace libservice ServiceHandle(const ServiceHandle&) = delete; }; - void swap(ServiceHandle&, ServiceHandle&) LIBSERVICE_NOEXCEPT; + inline void swap(ServiceHandle& a, ServiceHandle& b) LIBSERVICE_NOEXCEPT + { + a.swap(b); + } } namespace std { template <> - void swap<libservice::ServiceHandle>( - libservice::ServiceHandle&, - libservice::ServiceHandle&) LIBSERVICE_NOEXCEPT; + inline void swap<libservice::ServiceHandle>( + libservice::ServiceHandle& a, + libservice::ServiceHandle& b) LIBSERVICE_NOEXCEPT + { + a.swap(b); + } } |