mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-11-15 23:09:41 +01:00
Compare commits
11 Commits
boost-1.83
...
boost-1.85
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ef8cfd02f | ||
|
|
cd2aac8442 | ||
|
|
3ca07d82a7 | ||
|
|
f8303629f1 | ||
|
|
ef0e40bcda | ||
|
|
4af91d46f1 | ||
|
|
42dfdc9e51 | ||
|
|
763c7f56cd | ||
|
|
029f089a4a | ||
|
|
66d11714bd | ||
|
|
ac0381f0b8 |
@@ -194,17 +194,38 @@ local windows_pipeline(name, image, environment, arch = "amd64") =
|
|||||||
),
|
),
|
||||||
|
|
||||||
linux_pipeline(
|
linux_pipeline(
|
||||||
"Linux 22.04 GCC 12 32 ASAN",
|
"Linux 22.04 GCC 12 32/64",
|
||||||
"cppalliance/droneubuntu2204:1",
|
"cppalliance/droneubuntu2204:1",
|
||||||
{ TOOLSET: 'gcc', COMPILER: 'g++-12', CXXSTD: '03,11,14,17,20,2b', ADDRMD: '32' } + asan,
|
{ TOOLSET: 'gcc', COMPILER: 'g++-12', CXXSTD: '03,11,14,17,20,2b', ADDRMD: '32,64' },
|
||||||
"g++-12-multilib",
|
"g++-12-multilib",
|
||||||
),
|
),
|
||||||
|
|
||||||
linux_pipeline(
|
linux_pipeline(
|
||||||
"Linux 22.04 GCC 12 64 ASAN",
|
"Linux 23.04 GCC 13 32 ASAN",
|
||||||
"cppalliance/droneubuntu2204:1",
|
"cppalliance/droneubuntu2304:1",
|
||||||
{ TOOLSET: 'gcc', COMPILER: 'g++-12', CXXSTD: '03,11,14,17,20,2b', ADDRMD: '64' } + asan,
|
{ TOOLSET: 'gcc', COMPILER: 'g++-13', CXXSTD: '03,11,14,17,20,2b', ADDRMD: '32' } + asan,
|
||||||
"g++-12-multilib",
|
"g++-13-multilib",
|
||||||
|
),
|
||||||
|
|
||||||
|
linux_pipeline(
|
||||||
|
"Linux 23.04 GCC 13 64 ASAN",
|
||||||
|
"cppalliance/droneubuntu2304:1",
|
||||||
|
{ TOOLSET: 'gcc', COMPILER: 'g++-13', CXXSTD: '03,11,14,17,20,2b', ADDRMD: '64' } + asan,
|
||||||
|
"g++-13-multilib",
|
||||||
|
),
|
||||||
|
|
||||||
|
linux_pipeline(
|
||||||
|
"Linux 23.04 GCC 13 32 UBSAN",
|
||||||
|
"cppalliance/droneubuntu2304:1",
|
||||||
|
{ TOOLSET: 'gcc', COMPILER: 'g++-13', CXXSTD: '03,11,14,17,20,2b', ADDRMD: '32' } + ubsan,
|
||||||
|
"g++-13-multilib",
|
||||||
|
),
|
||||||
|
|
||||||
|
linux_pipeline(
|
||||||
|
"Linux 23.04 GCC 13 64 UBSAN",
|
||||||
|
"cppalliance/droneubuntu2304:1",
|
||||||
|
{ TOOLSET: 'gcc', COMPILER: 'g++-13', CXXSTD: '03,11,14,17,20,2b', ADDRMD: '64' } + ubsan,
|
||||||
|
"g++-13-multilib",
|
||||||
),
|
),
|
||||||
|
|
||||||
linux_pipeline(
|
linux_pipeline(
|
||||||
@@ -320,25 +341,31 @@ local windows_pipeline(name, image, environment, arch = "amd64") =
|
|||||||
),
|
),
|
||||||
|
|
||||||
linux_pipeline(
|
linux_pipeline(
|
||||||
"Linux 22.04 Clang 15 UBSAN",
|
"Linux 22.04 Clang 15",
|
||||||
"cppalliance/droneubuntu2204:1",
|
"cppalliance/droneubuntu2204:1",
|
||||||
{ TOOLSET: 'clang', COMPILER: 'clang++-15', CXXSTD: '03,11,14,17,20,2b' } + ubsan,
|
{ TOOLSET: 'clang', COMPILER: 'clang++-15', CXXSTD: '03,11,14,17,20,2b' },
|
||||||
"clang-15",
|
"clang-15",
|
||||||
),
|
),
|
||||||
|
|
||||||
linux_pipeline(
|
linux_pipeline(
|
||||||
"Linux 22.04 Clang 15 ASAN",
|
"Linux 23.04 Clang 16",
|
||||||
"cppalliance/droneubuntu2204:1",
|
"cppalliance/droneubuntu2304:1",
|
||||||
{ TOOLSET: 'clang', COMPILER: 'clang++-15', CXXSTD: '03,11,14,17,20,2b' } + asan,
|
|
||||||
"clang-15",
|
|
||||||
),
|
|
||||||
|
|
||||||
linux_pipeline(
|
|
||||||
"Linux 22.04 Clang 16",
|
|
||||||
"cppalliance/droneubuntu2204:1",
|
|
||||||
{ TOOLSET: 'clang', COMPILER: 'clang++-16', CXXSTD: '03,11,14,17,20,2b' },
|
{ TOOLSET: 'clang', COMPILER: 'clang++-16', CXXSTD: '03,11,14,17,20,2b' },
|
||||||
"clang-16",
|
"clang-16",
|
||||||
["deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main"],
|
),
|
||||||
|
|
||||||
|
linux_pipeline(
|
||||||
|
"Linux 23.10 Clang 17 UBSAN",
|
||||||
|
"cppalliance/droneubuntu2310:1",
|
||||||
|
{ TOOLSET: 'clang', COMPILER: 'clang++-17', CXXSTD: '03,11,14,17,20,2b' } + ubsan,
|
||||||
|
"clang-17",
|
||||||
|
),
|
||||||
|
|
||||||
|
linux_pipeline(
|
||||||
|
"Linux 23.10 Clang 17 ASAN",
|
||||||
|
"cppalliance/droneubuntu2310:1",
|
||||||
|
{ TOOLSET: 'clang', COMPILER: 'clang++-17', CXXSTD: '03,11,14,17,20,2b' } + asan,
|
||||||
|
"clang-17",
|
||||||
),
|
),
|
||||||
|
|
||||||
macos_pipeline(
|
macos_pipeline(
|
||||||
@@ -366,7 +393,7 @@ local windows_pipeline(name, image, environment, arch = "amd64") =
|
|||||||
windows_pipeline(
|
windows_pipeline(
|
||||||
"Windows VS2015 msvc-14.0",
|
"Windows VS2015 msvc-14.0",
|
||||||
"cppalliance/dronevs2015",
|
"cppalliance/dronevs2015",
|
||||||
{ TOOLSET: 'msvc-14.0', CXXSTD: '14,latest' },
|
{ TOOLSET: 'msvc-14.0', CXXSTD: '14,latest', B2_DONT_EMBED_MANIFEST: '1' },
|
||||||
),
|
),
|
||||||
|
|
||||||
windows_pipeline(
|
windows_pipeline(
|
||||||
|
|||||||
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@@ -125,24 +125,33 @@ jobs:
|
|||||||
- toolset: clang
|
- toolset: clang
|
||||||
compiler: clang++-13
|
compiler: clang++-13
|
||||||
cxxstd: "03,11,14,17,20,2b"
|
cxxstd: "03,11,14,17,20,2b"
|
||||||
os: ubuntu-22.04
|
container: ubuntu:22.04
|
||||||
|
os: ubuntu-latest
|
||||||
install: clang-13
|
install: clang-13
|
||||||
- toolset: clang
|
- toolset: clang
|
||||||
compiler: clang++-14
|
compiler: clang++-14
|
||||||
cxxstd: "03,11,14,17,20,2b"
|
cxxstd: "03,11,14,17,20,2b"
|
||||||
os: ubuntu-22.04
|
container: ubuntu:22.04
|
||||||
|
os: ubuntu-latest
|
||||||
install: clang-14
|
install: clang-14
|
||||||
- toolset: clang
|
- toolset: clang
|
||||||
compiler: clang++-15
|
compiler: clang++-15
|
||||||
cxxstd: "03,11,14,17,20,2b"
|
cxxstd: "03,11,14,17,20,2b"
|
||||||
os: ubuntu-22.04
|
container: ubuntu:22.04
|
||||||
|
os: ubuntu-latest
|
||||||
install: clang-15
|
install: clang-15
|
||||||
- toolset: clang
|
- toolset: clang
|
||||||
compiler: clang++-16
|
compiler: clang++-16
|
||||||
cxxstd: "03,11,14,17,20,2b"
|
cxxstd: "03,11,14,17,20,2b"
|
||||||
os: ubuntu-latest
|
|
||||||
container: ubuntu:23.04
|
container: ubuntu:23.04
|
||||||
|
os: ubuntu-latest
|
||||||
install: clang-16
|
install: clang-16
|
||||||
|
- toolset: clang
|
||||||
|
compiler: clang++-17
|
||||||
|
cxxstd: "03,11,14,17,20,2b"
|
||||||
|
container: ubuntu:23.10
|
||||||
|
os: ubuntu-latest
|
||||||
|
install: clang-17
|
||||||
- toolset: clang
|
- toolset: clang
|
||||||
cxxstd: "03,11,14,17,2a"
|
cxxstd: "03,11,14,17,2a"
|
||||||
os: macos-11
|
os: macos-11
|
||||||
@@ -225,7 +234,7 @@ jobs:
|
|||||||
addrmd: 32,64
|
addrmd: 32,64
|
||||||
os: windows-2022
|
os: windows-2022
|
||||||
- toolset: clang-win
|
- toolset: clang-win
|
||||||
cxxstd: "14,17,latest"
|
cxxstd: "14,17,20,latest"
|
||||||
addrmd: 32,64
|
addrmd: 32,64
|
||||||
os: windows-2022
|
os: windows-2022
|
||||||
- toolset: gcc
|
- toolset: gcc
|
||||||
@@ -275,6 +284,7 @@ jobs:
|
|||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
- os: macos-11
|
- os: macos-11
|
||||||
- os: macos-12
|
- os: macos-12
|
||||||
|
- os: macos-13
|
||||||
|
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
@@ -322,6 +332,7 @@ jobs:
|
|||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
- os: macos-11
|
- os: macos-11
|
||||||
- os: macos-12
|
- os: macos-12
|
||||||
|
- os: macos-13
|
||||||
|
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
@@ -379,6 +390,7 @@ jobs:
|
|||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
- os: macos-11
|
- os: macos-11
|
||||||
- os: macos-12
|
- os: macos-12
|
||||||
|
- os: macos-13
|
||||||
|
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
|
|||||||
13
appveyor.yml
13
appveyor.yml
@@ -15,10 +15,19 @@ branches:
|
|||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
TOOLSET: msvc-9.0,msvc-10.0,msvc-11.0
|
TOOLSET: msvc-9.0
|
||||||
ADDRMD: 32
|
ADDRMD: 32
|
||||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
TOOLSET: msvc-12.0,msvc-14.0
|
TOOLSET: msvc-10.0
|
||||||
|
ADDRMD: 32
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
TOOLSET: msvc-11.0
|
||||||
|
ADDRMD: 32
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
TOOLSET: msvc-12.0
|
||||||
|
ADDRMD: 32,64
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
TOOLSET: msvc-14.0
|
||||||
ADDRMD: 32,64
|
ADDRMD: 32,64
|
||||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||||
TOOLSET: msvc-14.1
|
TOOLSET: msvc-14.1
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
defined(BOOST_NO_CXX11_NULLPTR) || \
|
defined(BOOST_NO_CXX11_NULLPTR) || \
|
||||||
defined(BOOST_NO_CXX11_SMART_PTR)
|
defined(BOOST_NO_CXX11_SMART_PTR)
|
||||||
|
|
||||||
BOOST_PRAGMA_MESSAGE("C++03 support was deprecated in Boost.SmartPtr 1.82 and will be removed in Boost.SmartPtr 1.84. Please open an issue in https://github.com/boostorg/smart_ptr if you want it retained.")
|
BOOST_PRAGMA_MESSAGE("C++03 support was deprecated in Boost.SmartPtr 1.82 and will be removed in Boost.SmartPtr 1.86.")
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -247,17 +247,6 @@ template<class T, class U> inline bool operator!=(T * a, intrusive_ptr<U> const
|
|||||||
return a != b.get();
|
return a != b.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__GNUC__) && __GNUC__ == 2 && __GNUC_MINOR__ <= 96
|
|
||||||
|
|
||||||
// Resolve the ambiguity between our op!= and the one in rel_ops
|
|
||||||
|
|
||||||
template<class T> inline bool operator!=(intrusive_ptr<T> const & a, intrusive_ptr<T> const & b) BOOST_SP_NOEXCEPT
|
|
||||||
{
|
|
||||||
return a.get() != b.get();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined( BOOST_NO_CXX11_NULLPTR )
|
#if !defined( BOOST_NO_CXX11_NULLPTR )
|
||||||
|
|
||||||
template<class T> inline bool operator==( intrusive_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_SP_NOEXCEPT
|
template<class T> inline bool operator==( intrusive_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_SP_NOEXCEPT
|
||||||
|
|||||||
@@ -895,17 +895,6 @@ template<class T, class U> inline bool operator!=(shared_ptr<T> const & a, share
|
|||||||
return a.get() != b.get();
|
return a.get() != b.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if __GNUC__ == 2 && __GNUC_MINOR__ <= 96
|
|
||||||
|
|
||||||
// Resolve the ambiguity between our op!= and the one in rel_ops
|
|
||||||
|
|
||||||
template<class T> inline bool operator!=(shared_ptr<T> const & a, shared_ptr<T> const & b) BOOST_SP_NOEXCEPT
|
|
||||||
{
|
|
||||||
return a.get() != b.get();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined( BOOST_NO_CXX11_NULLPTR )
|
#if !defined( BOOST_NO_CXX11_NULLPTR )
|
||||||
|
|
||||||
template<class T> inline bool operator==( shared_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_SP_NOEXCEPT
|
template<class T> inline bool operator==( shared_ptr<T> const & p, boost::detail::sp_nullptr_t ) BOOST_SP_NOEXCEPT
|
||||||
|
|||||||
39
test/Jamfile
39
test/Jamfile
@@ -8,6 +8,7 @@
|
|||||||
# http://www.boost.org/LICENSE_1_0.txt)
|
# http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
import testing ;
|
import testing ;
|
||||||
|
import ../../config/checks/config : requires ;
|
||||||
|
|
||||||
project
|
project
|
||||||
: requirements
|
: requirements
|
||||||
@@ -16,6 +17,8 @@ project
|
|||||||
#<toolset>gcc:<cxxflags>-Wno-delete-non-virtual-dtor (not in 4.4/4.6)
|
#<toolset>gcc:<cxxflags>-Wno-delete-non-virtual-dtor (not in 4.4/4.6)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
local cnhash = [ requires cxx11_decltype cxx11_noexcept ] <toolset>gcc-4.6:<build>no ;
|
||||||
|
|
||||||
# quick test (for CI)
|
# quick test (for CI)
|
||||||
run quick.cpp ;
|
run quick.cpp ;
|
||||||
|
|
||||||
@@ -92,9 +95,11 @@ compile-fail auto_ptr_lv_fail.cpp
|
|||||||
run atomic_count_test2.cpp ;
|
run atomic_count_test2.cpp ;
|
||||||
run sp_typeinfo_test.cpp ;
|
run sp_typeinfo_test.cpp ;
|
||||||
compile make_shared_fp_test.cpp ;
|
compile make_shared_fp_test.cpp ;
|
||||||
run sp_hash_test.cpp ;
|
run sp_hash_test.cpp
|
||||||
|
: : : $(cnhash) ;
|
||||||
run get_deleter_array_test.cpp ;
|
run get_deleter_array_test.cpp ;
|
||||||
run ip_hash_test.cpp ;
|
run ip_hash_test.cpp
|
||||||
|
: : : $(cnhash) ;
|
||||||
run owner_less_test.cpp ;
|
run owner_less_test.cpp ;
|
||||||
run sp_unique_ptr_test.cpp ;
|
run sp_unique_ptr_test.cpp ;
|
||||||
run sp_array_test.cpp ;
|
run sp_array_test.cpp ;
|
||||||
@@ -221,8 +226,10 @@ run weak_from_this_test2.cpp ;
|
|||||||
|
|
||||||
run sp_bml_unique_ptr_test.cpp ;
|
run sp_bml_unique_ptr_test.cpp ;
|
||||||
|
|
||||||
run sp_hash_test2.cpp ;
|
run sp_hash_test2.cpp
|
||||||
run sp_hash_test3.cpp ;
|
: : : $(cnhash) ;
|
||||||
|
run sp_hash_test3.cpp
|
||||||
|
: : : $(cnhash) ;
|
||||||
|
|
||||||
run pointer_cast_test2.cpp ;
|
run pointer_cast_test2.cpp ;
|
||||||
|
|
||||||
@@ -368,11 +375,16 @@ compile-fail shared_from_fail.cpp ;
|
|||||||
compile-fail weak_from_fail.cpp ;
|
compile-fail weak_from_fail.cpp ;
|
||||||
|
|
||||||
compile sp_override_test.cpp ;
|
compile sp_override_test.cpp ;
|
||||||
|
|
||||||
|
local gcc-flags = -Wundef ;
|
||||||
|
|
||||||
compile sp_pedantic_test.cpp
|
compile sp_pedantic_test.cpp
|
||||||
: <warnings>pedantic
|
: <warnings>pedantic
|
||||||
<toolset>msvc:<warnings-as-errors>on
|
<toolset>msvc:<warnings-as-errors>on
|
||||||
<toolset>gcc:<warnings-as-errors>on
|
<toolset>gcc:<warnings-as-errors>on
|
||||||
|
<toolset>gcc:<cxxflags>$(gcc-flags)
|
||||||
<toolset>clang:<warnings-as-errors>on
|
<toolset>clang:<warnings-as-errors>on
|
||||||
|
<toolset>clang:<cxxflags>$(gcc-flags)
|
||||||
<toolset>clang-15:<cxxflags>-Wno-deprecated-builtins
|
<toolset>clang-15:<cxxflags>-Wno-deprecated-builtins
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -388,29 +400,34 @@ run owner_less_test2.cpp ;
|
|||||||
|
|
||||||
run ip_hash_test2.cpp ;
|
run ip_hash_test2.cpp ;
|
||||||
run sp_hash_test4.cpp ;
|
run sp_hash_test4.cpp ;
|
||||||
run lsp_hash_test.cpp ;
|
|
||||||
|
run lsp_hash_test.cpp
|
||||||
|
: : : $(cnhash) ;
|
||||||
run lsp_hash_test2.cpp ;
|
run lsp_hash_test2.cpp ;
|
||||||
|
|
||||||
|
local MT = <threading>multi [ requires cxx11_decltype cxx11_noexcept ] <toolset>gcc-4.6:<build>no ;
|
||||||
|
|
||||||
run atomic_count_mt_test.cpp
|
run atomic_count_mt_test.cpp
|
||||||
: : : <threading>multi ;
|
: : : $(MT) ;
|
||||||
|
|
||||||
run spinlock_mt_test.cpp
|
run spinlock_mt_test.cpp
|
||||||
: : : <threading>multi ;
|
: : : $(MT) ;
|
||||||
|
|
||||||
run spinlock_pool_mt_test.cpp
|
run spinlock_pool_mt_test.cpp
|
||||||
: : : <threading>multi ;
|
: : : $(MT) ;
|
||||||
|
|
||||||
run shared_ptr_mt_test.cpp
|
run shared_ptr_mt_test.cpp
|
||||||
: : : <threading>multi ;
|
: : : $(MT) ;
|
||||||
|
|
||||||
run weak_ptr_mt_test.cpp
|
run weak_ptr_mt_test.cpp
|
||||||
: : : <threading>multi ;
|
: : : $(MT) ;
|
||||||
|
|
||||||
compile sp_report_implementation.cpp ;
|
compile sp_report_implementation.cpp ;
|
||||||
|
|
||||||
run sp_owner_hash_value_test.cpp ;
|
run sp_owner_hash_value_test.cpp ;
|
||||||
|
|
||||||
run wp_hash_test.cpp ;
|
run wp_hash_test.cpp
|
||||||
|
: : : $(cnhash) ;
|
||||||
run wp_hash_test2.cpp ;
|
run wp_hash_test2.cpp ;
|
||||||
|
|
||||||
run wp_unordered_test.cpp ;
|
run wp_unordered_test.cpp ;
|
||||||
|
|||||||
Reference in New Issue
Block a user