mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-31 13:17:23 +02:00
Mark platform-specific implementations as obsolete
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
||||||
|
#include <boost/smart_ptr/detail/sp_obsolete.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <machine/sys/inline.h>
|
#include <machine/sys/inline.h>
|
||||||
|
|
||||||
@@ -26,6 +27,8 @@ BOOST_PRAGMA_MESSAGE("Using HP aCC++/HP-UX/IA64 sp_counted_base")
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
BOOST_SP_OBSOLETE()
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
||||||
|
#include <boost/smart_ptr/detail/sp_obsolete.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
#if defined(BOOST_SP_REPORT_IMPLEMENTATION)
|
#if defined(BOOST_SP_REPORT_IMPLEMENTATION)
|
||||||
@@ -34,6 +35,8 @@ BOOST_PRAGMA_MESSAGE("Using CodeWarrior/PowerPC sp_counted_base")
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
BOOST_SP_OBSOLETE()
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -17,6 +17,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
||||||
|
#include <boost/smart_ptr/detail/sp_obsolete.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
#if defined(BOOST_SP_REPORT_IMPLEMENTATION)
|
#if defined(BOOST_SP_REPORT_IMPLEMENTATION)
|
||||||
@@ -26,6 +27,8 @@ BOOST_PRAGMA_MESSAGE("Using g++/IA64 sp_counted_base")
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
BOOST_SP_OBSOLETE()
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
||||||
|
#include <boost/smart_ptr/detail/sp_obsolete.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
#if defined(BOOST_SP_REPORT_IMPLEMENTATION)
|
#if defined(BOOST_SP_REPORT_IMPLEMENTATION)
|
||||||
@@ -30,6 +31,8 @@ BOOST_PRAGMA_MESSAGE("Using g++/MIPS sp_counted_base")
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
BOOST_SP_OBSOLETE()
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
||||||
|
#include <boost/smart_ptr/detail/sp_obsolete.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
#if defined(BOOST_SP_REPORT_IMPLEMENTATION)
|
#if defined(BOOST_SP_REPORT_IMPLEMENTATION)
|
||||||
@@ -34,6 +35,8 @@ BOOST_PRAGMA_MESSAGE("Using g++/PowerPC sp_counted_base")
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
BOOST_SP_OBSOLETE()
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -20,6 +20,7 @@
|
|||||||
// Thanks to Michael van der Westhuizen
|
// Thanks to Michael van der Westhuizen
|
||||||
|
|
||||||
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
||||||
|
#include <boost/smart_ptr/detail/sp_obsolete.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <inttypes.h> // int32_t
|
#include <inttypes.h> // int32_t
|
||||||
|
|
||||||
@@ -30,6 +31,8 @@ BOOST_PRAGMA_MESSAGE("Using g++/Sparc sp_counted_base")
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
BOOST_SP_OBSOLETE()
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
||||||
|
#include <boost/smart_ptr/detail/sp_obsolete.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
#if defined(BOOST_SP_REPORT_IMPLEMENTATION)
|
#if defined(BOOST_SP_REPORT_IMPLEMENTATION)
|
||||||
@@ -34,6 +35,8 @@ BOOST_PRAGMA_MESSAGE("Using g++/x86 sp_counted_base")
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
BOOST_SP_OBSOLETE()
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -20,6 +20,7 @@
|
|||||||
// Thanks to Michael van der Westhuizen
|
// Thanks to Michael van der Westhuizen
|
||||||
|
|
||||||
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
||||||
|
#include <boost/smart_ptr/detail/sp_obsolete.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <inttypes.h> // uint32_t
|
#include <inttypes.h> // uint32_t
|
||||||
|
|
||||||
@@ -30,6 +31,8 @@ BOOST_PRAGMA_MESSAGE("Using PS3 sp_counted_base")
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
BOOST_SP_OBSOLETE()
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -22,6 +22,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
||||||
|
#include <boost/smart_ptr/detail/sp_obsolete.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
#if defined(BOOST_SP_REPORT_IMPLEMENTATION)
|
#if defined(BOOST_SP_REPORT_IMPLEMENTATION)
|
||||||
@@ -31,6 +32,8 @@ BOOST_PRAGMA_MESSAGE("Using xlC/PowerPC sp_counted_base")
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
BOOST_SP_OBSOLETE()
|
||||||
|
|
||||||
extern "builtin" void __lwsync(void);
|
extern "builtin" void __lwsync(void);
|
||||||
extern "builtin" void __isync(void);
|
extern "builtin" void __isync(void);
|
||||||
extern "builtin" int __fetch_and_add(volatile int* addr, int val);
|
extern "builtin" int __fetch_and_add(volatile int* addr, int val);
|
||||||
|
32
include/boost/smart_ptr/detail/sp_obsolete.hpp
Normal file
32
include/boost/smart_ptr/detail/sp_obsolete.hpp
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
#ifndef BOOST_SMART_PTR_DETAIL_SP_OBSOLETE_HPP_INCLUDED
|
||||||
|
#define BOOST_SMART_PTR_DETAIL_SP_OBSOLETE_HPP_INCLUDED
|
||||||
|
|
||||||
|
// MS compatible compilers support #pragma once
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
||||||
|
# pragma once
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// boost/smart_ptr/detail/sp_obsolete.hpp
|
||||||
|
//
|
||||||
|
// Copyright 2020 Peter Dimov
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
//
|
||||||
|
// Defines the BOOST_SP_OBSOLETE macro that emits a deprecation
|
||||||
|
// message.
|
||||||
|
|
||||||
|
#include <boost/config/pragma_message.hpp>
|
||||||
|
|
||||||
|
#if !defined( BOOST_SP_NO_OBSOLETE_MESSAGE )
|
||||||
|
|
||||||
|
#define BOOST_SP_OBSOLETE() BOOST_PRAGMA_MESSAGE("This platform-specific implementation is presumed obsolete and is slated for removal. If you want it retained, please open an issue in https://github.com/boostorg/smart_ptr.")
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#define BOOST_SP_OBSOLETE()
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_OBSOLETE_HPP_INCLUDED
|
Reference in New Issue
Block a user