diff --git a/core/include/Common/spimpl.h b/core/include/Common/spimpl.h index 7f6e8be..de37151 100644 --- a/core/include/Common/spimpl.h +++ b/core/include/Common/spimpl.h @@ -89,9 +89,8 @@ using default_copier_t = typename default_copier::type; template struct is_default_manageable - : public std::integral_constant >::value - && std::is_same >::value> { + : public std::integral_constant >::value + && std::is_same >::value> { }; } @@ -132,11 +131,10 @@ public: } template - impl_ptr(U *u, - typename std::enable_if::value - && is_default_manageable::value, - dummy_t_>::type - = dummy_t_()) SPIMPL_NOEXCEPT + impl_ptr(U *u, typename std::enable_if::value + && is_default_manageable::value, + dummy_t_>::type + = dummy_t_()) SPIMPL_NOEXCEPT : impl_ptr(u, &details::default_delete, &details::default_copy) { } @@ -153,12 +151,12 @@ public: #ifdef SPIMPL_HAS_AUTO_PTR template - impl_ptr(std::auto_ptr &&u, - typename std::enable_if::value - && is_default_manageable::value, - dummy_t_>::type - = dummy_t_()) SPIMPL_NOEXCEPT : ptr_(u.release(), &details::default_delete), - copier_(&details::default_copy) + impl_ptr(std::auto_ptr &&u, typename std::enable_if::value + && is_default_manageable::value, + dummy_t_>::type + = dummy_t_()) SPIMPL_NOEXCEPT + : ptr_(u.release(), &details::default_delete), + copier_(&details::default_copy) { } #endif @@ -240,9 +238,8 @@ public: #ifdef SPIMPL_HAS_AUTO_PTR template - typename std::enable_if::value - && is_default_manageable::value, - impl_ptr &>::type + typename std::enable_if< + std::is_convertible::value && is_default_manageable::value, impl_ptr &>::type operator=(std::auto_ptr &&u) SPIMPL_NOEXCEPT { return operator=(impl_ptr(std::move(u))); @@ -250,9 +247,8 @@ public: #endif template - typename std::enable_if::value - && is_default_manageable::value, - impl_ptr &>::type + typename std::enable_if< + std::is_convertible::value && is_default_manageable::value, impl_ptr &>::type operator=(std::unique_ptr &&u) SPIMPL_NOEXCEPT { return operator=(impl_ptr(std::move(u)));