Deprecate headers in boost/detail/

This commit is contained in:
Peter Dimov
2024-09-26 04:11:10 +03:00
parent 94d31304f3
commit 682b285a21
12 changed files with 34 additions and 68 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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()

View File

@ -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()

View File

@ -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

View File

@ -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 );

View File

@ -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>