mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-11-16 07:19:23 +01:00
Remove uses of boost/cstdint.hpp
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
#include <boost/core/addressof.hpp>
|
#include <boost/core/addressof.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <boost/config/workaround.hpp>
|
#include <boost/config/workaround.hpp>
|
||||||
#include <boost/cstdint.hpp>
|
#include <cstdint>
|
||||||
#include <memory> // std::auto_ptr
|
#include <memory> // std::auto_ptr
|
||||||
#include <functional> // std::less
|
#include <functional> // std::less
|
||||||
#include <cstddef> // std::size_t
|
#include <cstddef> // std::size_t
|
||||||
@@ -91,7 +91,7 @@ template< class D > struct sp_convert_reference< D& >
|
|||||||
|
|
||||||
template<class T> std::size_t sp_hash_pointer( T* p ) noexcept
|
template<class T> std::size_t sp_hash_pointer( T* p ) noexcept
|
||||||
{
|
{
|
||||||
boost::uintptr_t v = reinterpret_cast<boost::uintptr_t>( p );
|
std::uintptr_t v = reinterpret_cast<std::uintptr_t>( p );
|
||||||
|
|
||||||
// match boost::hash<T*>
|
// match boost::hash<T*>
|
||||||
return static_cast<std::size_t>( v + ( v >> 3 ) );
|
return static_cast<std::size_t>( v + ( v >> 3 ) );
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
#include <boost/smart_ptr/detail/sp_typeinfo_.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#include <boost/cstdint.hpp>
|
#include <cstdint>
|
||||||
|
|
||||||
#if defined(BOOST_SP_REPORT_IMPLEMENTATION)
|
#if defined(BOOST_SP_REPORT_IMPLEMENTATION)
|
||||||
|
|
||||||
@@ -42,8 +42,8 @@ private:
|
|||||||
sp_counted_base( sp_counted_base const & );
|
sp_counted_base( sp_counted_base const & );
|
||||||
sp_counted_base & operator= ( sp_counted_base const & );
|
sp_counted_base & operator= ( sp_counted_base const & );
|
||||||
|
|
||||||
boost::int_least32_t use_count_; // #shared
|
std::int_least32_t use_count_; // #shared
|
||||||
boost::int_least32_t weak_count_; // #weak + (#shared != 0)
|
std::int_least32_t weak_count_; // #weak + (#shared != 0)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user