mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-29 20:37:13 +02:00
Deprecate headers in boost/detail/
This commit is contained in:
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include <boost/assert.hpp>
|
#include <boost/assert.hpp>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <boost/detail/lightweight_mutex.hpp>
|
#include <boost/smart_ptr/detail/lightweight_mutex.hpp>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
#include <boost/thread/shared_mutex.hpp>
|
#include <boost/thread/shared_mutex.hpp>
|
||||||
#include <boost/thread/locks.hpp>
|
#include <boost/thread/locks.hpp>
|
||||||
|
|
||||||
#include <boost/detail/lightweight_mutex.hpp>
|
#include <boost/smart_ptr/detail/lightweight_mutex.hpp>
|
||||||
#include <boost/detail/lightweight_thread.hpp>
|
#include <boost/smart_ptr/detail/lightweight_thread.hpp>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
#include <boost/thread/locks.hpp>
|
#include <boost/thread/locks.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/detail/lightweight_mutex.hpp>
|
#include <boost/smart_ptr/detail/lightweight_mutex.hpp>
|
||||||
#include <boost/detail/lightweight_test.hpp>
|
#include <boost/smart_ptr/detail/lightweight_thread.hpp>
|
||||||
#include <boost/detail/lightweight_thread.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
|
@ -1,20 +1,13 @@
|
|||||||
#ifndef BOOST_DETAIL_ATOMIC_COUNT_HPP_INCLUDED
|
#ifndef BOOST_DETAIL_ATOMIC_COUNT_HPP_INCLUDED
|
||||||
#define BOOST_DETAIL_ATOMIC_COUNT_HPP_INCLUDED
|
#define BOOST_DETAIL_ATOMIC_COUNT_HPP_INCLUDED
|
||||||
|
|
||||||
// MS compatible compilers support #pragma once
|
// Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd.
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
#include <boost/config/header_deprecated.hpp>
|
||||||
# pragma once
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//
|
BOOST_HEADER_DEPRECATED("<boost/smart_ptr/detail/atomic_count.hpp>")
|
||||||
// boost/detail/atomic_count.hpp - thread/SMP safe reference counter
|
|
||||||
//
|
|
||||||
// Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd.
|
|
||||||
//
|
|
||||||
// Distributed under the Boost Software License, Version 1.0.
|
|
||||||
// See accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
// http://www.boost.org/LICENSE_1_0.txt
|
|
||||||
|
|
||||||
#include <boost/smart_ptr/detail/atomic_count.hpp>
|
#include <boost/smart_ptr/detail/atomic_count.hpp>
|
||||||
|
|
||||||
|
@ -1,21 +1,13 @@
|
|||||||
#ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
|
#ifndef BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
|
||||||
#define BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
|
#define BOOST_DETAIL_LIGHTWEIGHT_MUTEX_HPP_INCLUDED
|
||||||
|
|
||||||
// MS compatible compilers support #pragma once
|
// Copyright (c) 2002, 2003 Peter Dimov and Multi Media Ltd.
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
#include <boost/config/header_deprecated.hpp>
|
||||||
# pragma once
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//
|
BOOST_HEADER_DEPRECATED("<boost/smart_ptr/detail/lightweight_mutex.hpp>")
|
||||||
// boost/detail/lightweight_mutex.hpp - lightweight mutex
|
|
||||||
//
|
|
||||||
// Copyright (c) 2002, 2003 Peter Dimov and Multi Media Ltd.
|
|
||||||
//
|
|
||||||
// Distributed under the Boost Software License, Version 1.0.
|
|
||||||
// See accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
// http://www.boost.org/LICENSE_1_0.txt
|
|
||||||
//
|
|
||||||
|
|
||||||
#include <boost/smart_ptr/detail/lightweight_mutex.hpp>
|
#include <boost/smart_ptr/detail/lightweight_mutex.hpp>
|
||||||
|
|
||||||
|
@ -1,25 +1,14 @@
|
|||||||
#ifndef BOOST_DETAIL_LIGHTWEIGHT_THREAD_HPP_INCLUDED
|
#ifndef BOOST_DETAIL_LIGHTWEIGHT_THREAD_HPP_INCLUDED
|
||||||
#define BOOST_DETAIL_LIGHTWEIGHT_THREAD_HPP_INCLUDED
|
#define BOOST_DETAIL_LIGHTWEIGHT_THREAD_HPP_INCLUDED
|
||||||
|
|
||||||
// MS compatible compilers support #pragma once
|
// Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
|
||||||
|
// Copyright (c) 2008, 2018 Peter Dimov
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
#include <boost/config/header_deprecated.hpp>
|
||||||
# pragma once
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// boost/detail/lightweight_thread.hpp
|
BOOST_HEADER_DEPRECATED("<boost/smart_ptr/detail/lightweight_thread.hpp>")
|
||||||
//
|
|
||||||
// Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
|
|
||||||
// Copyright (c) 2008, 2018 Peter Dimov
|
|
||||||
//
|
|
||||||
// Distributed under the Boost Software License, Version 1.0.
|
|
||||||
// See accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
// http://www.boost.org/LICENSE_1_0.txt
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// typedef /*...*/ lw_thread_t; // as pthread_t
|
|
||||||
// template<class F> int lw_thread_create( lw_thread_t & th, F f );
|
|
||||||
// void lw_thread_join( lw_thread_t th );
|
|
||||||
|
|
||||||
#include <boost/smart_ptr/detail/lightweight_thread.hpp>
|
#include <boost/smart_ptr/detail/lightweight_thread.hpp>
|
||||||
|
|
||||||
|
@ -1,22 +1,14 @@
|
|||||||
#ifndef BOOST_DETAIL_QUICK_ALLOCATOR_HPP_INCLUDED
|
#ifndef BOOST_DETAIL_QUICK_ALLOCATOR_HPP_INCLUDED
|
||||||
#define BOOST_DETAIL_QUICK_ALLOCATOR_HPP_INCLUDED
|
#define BOOST_DETAIL_QUICK_ALLOCATOR_HPP_INCLUDED
|
||||||
|
|
||||||
// MS compatible compilers support #pragma once
|
// Copyright (c) 2003 David Abrahams
|
||||||
|
// Copyright (c) 2003 Peter Dimov
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
#include <boost/config/header_deprecated.hpp>
|
||||||
# pragma once
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//
|
BOOST_HEADER_DEPRECATED("<boost/smart_ptr/detail/quick_allocator.hpp>")
|
||||||
// detail/quick_allocator.hpp
|
|
||||||
//
|
|
||||||
// Copyright (c) 2003 David Abrahams
|
|
||||||
// Copyright (c) 2003 Peter Dimov
|
|
||||||
//
|
|
||||||
// Distributed under the Boost Software License, Version 1.0.
|
|
||||||
// See accompanying file LICENSE_1_0.txt or copy at
|
|
||||||
// http://www.boost.org/LICENSE_1_0.txt
|
|
||||||
//
|
|
||||||
|
|
||||||
#include <boost/smart_ptr/detail/quick_allocator.hpp>
|
#include <boost/smart_ptr/detail/quick_allocator.hpp>
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/detail/atomic_count.hpp>
|
#include <boost/smart_ptr/detail/atomic_count.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// http://www.boost.org/LICENSE_1_0.txt
|
// http://www.boost.org/LICENSE_1_0.txt
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/detail/atomic_count.hpp>
|
#include <boost/smart_ptr/detail/atomic_count.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/detail/lightweight_mutex.hpp>
|
#include <boost/smart_ptr/detail/lightweight_mutex.hpp>
|
||||||
|
|
||||||
// Sanity check only
|
// Sanity check only
|
||||||
|
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
// Copyright 2018 Peter Dimov
|
// Copyright 2018 Peter Dimov
|
||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
|
||||||
#include <boost/detail/lightweight_thread.hpp>
|
#include <boost/smart_ptr/detail/lightweight_thread.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
|
||||||
#include <boost/smart_ptr/detail/atomic_count.hpp>
|
#include <boost/smart_ptr/detail/atomic_count.hpp>
|
||||||
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
|
||||||
boost::detail::atomic_count count( 0 );
|
boost::detail::atomic_count count( 0 );
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <boost/detail/quick_allocator.hpp>
|
#include <boost/smart_ptr/detail/quick_allocator.hpp>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
Reference in New Issue
Block a user