Switched to atomic_count

[SVN r27811]
This commit is contained in:
Peter Dimov
2005-03-24 21:55:24 +00:00
parent a67e505cf5
commit bfc0225cda

View File

@ -19,7 +19,7 @@
// //
// intrusive_ptr_test.cpp // intrusive_ptr_test.cpp
// //
// Copyright (c) 2002, 2003 Peter Dimov // Copyright (c) 2002-2005 Peter Dimov
// //
// Distributed under the Boost Software License, Version 1.0. (See // Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at // accompanying file LICENSE_1_0.txt or copy at
@ -28,6 +28,7 @@
#include <boost/detail/lightweight_test.hpp> #include <boost/detail/lightweight_test.hpp>
#include <boost/intrusive_ptr.hpp> #include <boost/intrusive_ptr.hpp>
#include <boost/detail/atomic_count.hpp>
#include <boost/config.hpp> #include <boost/config.hpp>
#include <algorithm> #include <algorithm>
#include <functional> #include <functional>
@ -41,7 +42,7 @@ class base
{ {
private: private:
long use_count_; boost::detail::atomic_count use_count_;
base(base const &); base(base const &);
base & operator=(base const &); base & operator=(base const &);