diff options
Diffstat (limited to 'include/o3tl')
-rw-r--r-- | include/o3tl/cow_wrapper.hxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/o3tl/cow_wrapper.hxx b/include/o3tl/cow_wrapper.hxx index da822b2c88b8..a5edebf46cd0 100644 --- a/include/o3tl/cow_wrapper.hxx +++ b/include/o3tl/cow_wrapper.hxx @@ -24,9 +24,6 @@ #include <algorithm> -#include <boost/noncopyable.hpp> -#include <boost/checked_delete.hpp> - namespace o3tl { /** Thread-unsafe refcounting @@ -178,8 +175,11 @@ int cow_wrapper_client::queryUnmodified() const /** shared value object - gets cloned before cow_wrapper hands out a non-const reference to it */ - struct impl_t : private boost::noncopyable + struct impl_t { + impl_t(const impl_t&) = delete; + impl_t& operator=(const impl_t&) = delete; + impl_t() : m_value(), m_ref_count(1) @@ -199,7 +199,10 @@ int cow_wrapper_client::queryUnmodified() const void release() { if( m_pimpl && !MTPolicy::decrementCount(m_pimpl->m_ref_count) ) - boost::checked_delete(m_pimpl), m_pimpl = nullptr; + { + delete m_pimpl; + m_pimpl = nullptr; + } } public: |