mirror of
				https://github.com/boostorg/smart_ptr.git
				synced 2025-10-31 07:41:38 +01:00 
			
		
		
		
	Compare commits
	
		
			18 Commits
		
	
	
		
			boost-1.79
			...
			feature/is
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 331c50132b | ||
|  | 97c9204a95 | ||
|  | c577d68b02 | ||
|  | 2ce29622f5 | ||
|  | 7e9c54ffa2 | ||
|  | ca8d5216fc | ||
|  | 79e46f1719 | ||
|  | e6b5dc5ada | ||
|  | dd57aa5b70 | ||
|  | e4637b8500 | ||
|  | a0d4ec3915 | ||
|  | 59b5b17e81 | ||
|  | f2ab3b21f0 | ||
|  | e04196b6a1 | ||
|  | 95eaa2d7c3 | ||
|  | 2e31d0d633 | ||
|  | b8cb132ab4 | ||
|  | f4d7116241 | 
							
								
								
									
										382
									
								
								.drone.jsonnet
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										382
									
								
								.drone.jsonnet
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,382 @@ | ||||
| # Copyright 2022 Peter Dimov | ||||
| # Distributed under the Boost Software License, Version 1.0. | ||||
| # https://www.boost.org/LICENSE_1_0.txt | ||||
|  | ||||
| local library = "smart_ptr"; | ||||
|  | ||||
| local triggers = | ||||
| { | ||||
|     branch: [ "master", "develop", "feature/*" ] | ||||
| }; | ||||
|  | ||||
| local ubsan = { UBSAN: '1', UBSAN_OPTIONS: 'print_stacktrace=1' }; | ||||
| local asan = { ASAN: '1' }; | ||||
|  | ||||
| local linux_pipeline(name, image, environment, packages = "", sources = [], arch = "amd64") = | ||||
| { | ||||
|     name: name, | ||||
|     kind: "pipeline", | ||||
|     type: "docker", | ||||
|     trigger: triggers, | ||||
|     platform: | ||||
|     { | ||||
|         os: "linux", | ||||
|         arch: arch | ||||
|     }, | ||||
|     steps: | ||||
|     [ | ||||
|         { | ||||
|             name: "everything", | ||||
|             image: image, | ||||
|             environment: environment, | ||||
|             commands: | ||||
|             [ | ||||
|                 'set -e', | ||||
|                 'wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -', | ||||
|             ] + | ||||
|             (if sources != [] then [ ('apt-add-repository "' + source + '"') for source in sources ] else []) + | ||||
|             (if packages != "" then [ 'apt-get update', 'apt-get -y install ' + packages ] else []) + | ||||
|             [ | ||||
|                 'export LIBRARY=' + library, | ||||
|                 './.drone/drone.sh', | ||||
|             ] | ||||
|         } | ||||
|     ] | ||||
| }; | ||||
|  | ||||
| local macos_pipeline(name, environment, xcode_version = "12.2", osx_version = "catalina", arch = "amd64") = | ||||
| { | ||||
|     name: name, | ||||
|     kind: "pipeline", | ||||
|     type: "exec", | ||||
|     trigger: triggers, | ||||
|     platform: { | ||||
|         "os": "darwin", | ||||
|         "arch": arch | ||||
|     }, | ||||
|     node: { | ||||
|         "os": osx_version | ||||
|     }, | ||||
|     steps: [ | ||||
|         { | ||||
|             name: "everything", | ||||
|             environment: environment + { "DEVELOPER_DIR": "/Applications/Xcode-" + xcode_version + ".app/Contents/Developer" }, | ||||
|             commands: | ||||
|             [ | ||||
|                 'export LIBRARY=' + library, | ||||
|                 './.drone/drone.sh', | ||||
|             ] | ||||
|         } | ||||
|     ] | ||||
| }; | ||||
|  | ||||
| local windows_pipeline(name, image, environment, arch = "amd64") = | ||||
| { | ||||
|     name: name, | ||||
|     kind: "pipeline", | ||||
|     type: "docker", | ||||
|     trigger: triggers, | ||||
|     platform: | ||||
|     { | ||||
|         os: "windows", | ||||
|         arch: arch | ||||
|     }, | ||||
|     "steps": | ||||
|     [ | ||||
|         { | ||||
|             name: "everything", | ||||
|             image: image, | ||||
|             environment: environment, | ||||
|             commands: | ||||
|             [ | ||||
|                 'cmd /C .drone\\\\drone.bat ' + library, | ||||
|             ] | ||||
|         } | ||||
|     ] | ||||
| }; | ||||
|  | ||||
| [ | ||||
|     linux_pipeline( | ||||
|         "Linux 14.04 GCC 4.4", | ||||
|         "cppalliance/droneubuntu1404:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++-4.4', CXXSTD: '98,0x' }, | ||||
|         "g++-4.4", | ||||
|         [ "ppa:ubuntu-toolchain-r/test" ], | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 14.04 GCC 4.6", | ||||
|         "cppalliance/droneubuntu1404:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++-4.6', CXXSTD: '98,0x' }, | ||||
|         "g++-4.6", | ||||
|         [ "ppa:ubuntu-toolchain-r/test" ], | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 14.04 GCC 4.7", | ||||
|         "cppalliance/droneubuntu1404:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++-4.7', CXXSTD: '98,0x' }, | ||||
|         "g++-4.7", | ||||
|         [ "ppa:ubuntu-toolchain-r/test" ], | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 14.04 GCC 4.8*", | ||||
|         "cppalliance/droneubuntu1404:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++', CXXSTD: '03,11' }, | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 14.04 GCC 4.9", | ||||
|         "cppalliance/droneubuntu1404:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++-4.9', CXXSTD: '03,11' }, | ||||
|         "g++-4.9", | ||||
|         [ "ppa:ubuntu-toolchain-r/test" ], | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 16.04 GCC 5*", | ||||
|         "cppalliance/droneubuntu1604:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++', CXXSTD: '03,11,14' }, | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 18.04 GCC 6", | ||||
|         "cppalliance/droneubuntu1804:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++-6', CXXSTD: '03,11,14' }, | ||||
|         "g++-6", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 18.04 GCC 7* 32/64", | ||||
|         "cppalliance/droneubuntu1804:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++', CXXSTD: '03,11,14,17', ADDRMD: '32,64' }, | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 18.04 GCC 8", | ||||
|         "cppalliance/droneubuntu1804:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++-8', CXXSTD: '03,11,14,17' }, | ||||
|         "g++-8", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 20.04 GCC 9* 32", | ||||
|         "cppalliance/droneubuntu2004:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++', CXXSTD: '03,11,14,17,2a', ADDRMD: '32' }, | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 20.04 GCC 9* 64", | ||||
|         "cppalliance/droneubuntu2004:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++', CXXSTD: '03,11,14,17,2a', ADDRMD: '64' }, | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 20.04 GCC 9* ARM64", | ||||
|         "cppalliance/droneubuntu2004:multiarch", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++', CXXSTD: '03,11,14,17,2a' }, | ||||
|         arch="arm64", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 20.04 GCC 9* S390x", | ||||
|         "cppalliance/droneubuntu2004:multiarch", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++', CXXSTD: '03,11,14,17,2a' }, | ||||
|         arch="s390x", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 20.04 GCC 10 32 ASAN", | ||||
|         "cppalliance/droneubuntu2004:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++-10', CXXSTD: '03,11,14,17,20', ADDRMD: '32' } + asan, | ||||
|         "g++-10-multilib", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 20.04 GCC 10 64 ASAN", | ||||
|         "cppalliance/droneubuntu2004:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++-10', CXXSTD: '03,11,14,17,20', ADDRMD: '64' } + asan, | ||||
|         "g++-10-multilib", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 22.04 GCC 11* 32", | ||||
|         "cppalliance/droneubuntu2204:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++', CXXSTD: '03,11,14,17,2a', ADDRMD: '32' }, | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 22.04 GCC 11* 64", | ||||
|         "cppalliance/droneubuntu2204:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++', CXXSTD: '03,11,14,17,2a', ADDRMD: '64' }, | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 22.04 GCC 12", | ||||
|         "cppalliance/droneubuntu2204:1", | ||||
|         { TOOLSET: 'gcc', COMPILER: 'g++-12', CXXSTD: '03,11,14,17,20,2b' }, | ||||
|         "g++-12", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 16.04 Clang 3.5", | ||||
|         "cppalliance/droneubuntu1604:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-3.5', CXXSTD: '03,11' }, | ||||
|         "clang-3.5", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 16.04 Clang 3.6", | ||||
|         "cppalliance/droneubuntu1604:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-3.6', CXXSTD: '03,11,14' }, | ||||
|         "clang-3.6", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 16.04 Clang 3.7", | ||||
|         "cppalliance/droneubuntu1604:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-3.7', CXXSTD: '03,11,14' }, | ||||
|         "clang-3.7", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 16.04 Clang 3.8", | ||||
|         "cppalliance/droneubuntu1604:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-3.8', CXXSTD: '03,11,14' }, | ||||
|         "clang-3.8", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 18.04 Clang 3.9", | ||||
|         "cppalliance/droneubuntu1804:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-3.9', CXXSTD: '03,11,14' }, | ||||
|         "clang-3.9", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 18.04 Clang 4.0", | ||||
|         "cppalliance/droneubuntu1804:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-4.0', CXXSTD: '03,11,14' }, | ||||
|         "clang-4.0", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 18.04 Clang 5.0", | ||||
|         "cppalliance/droneubuntu1804:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-5.0', CXXSTD: '03,11,14' }, | ||||
|         "clang-5.0", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 20.04 Clang 6.0", | ||||
|         "cppalliance/droneubuntu2004:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-6.0', CXXSTD: '03,11,14,17' }, | ||||
|         "clang-6.0", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 20.04 Clang 7", | ||||
|         "cppalliance/droneubuntu2004:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-7', CXXSTD: '03,11,14,17' }, | ||||
|         "clang-7", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 20.04 Clang 8", | ||||
|         "cppalliance/droneubuntu2004:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-8', CXXSTD: '03,11,14,17' }, | ||||
|         "clang-8", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 20.04 Clang 9", | ||||
|         "cppalliance/droneubuntu2004:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-9', CXXSTD: '03,11,14,17,2a' }, | ||||
|         "clang-9", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 20.04 Clang 10", | ||||
|         "cppalliance/droneubuntu2004:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-10', CXXSTD: '03,11,14,17,2a' }, | ||||
|         "clang-10", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 20.04 Clang 11", | ||||
|         "cppalliance/droneubuntu2004:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-11', CXXSTD: '03,11,14,17,2a' }, | ||||
|         "clang-11", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 20.04 Clang 12", | ||||
|         "cppalliance/droneubuntu2004:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-12', CXXSTD: '03,11,14,17,20' }, | ||||
|         "clang-12", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 22.04 Clang 13", | ||||
|         "cppalliance/droneubuntu2204:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-13', CXXSTD: '03,11,14,17,20,2b' }, | ||||
|         "clang-13", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 22.04 Clang 14 UBSAN", | ||||
|         "cppalliance/droneubuntu2204:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-14', CXXSTD: '03,11,14,17,20,2b' } + ubsan, | ||||
|         "clang-14", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 22.04 Clang 14 ASAN", | ||||
|         "cppalliance/droneubuntu2204:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-14', CXXSTD: '03,11,14,17,20,2b' } + asan, | ||||
|         "clang-14", | ||||
|     ), | ||||
|  | ||||
|     linux_pipeline( | ||||
|         "Linux 22.04 Clang 15", | ||||
|         "cppalliance/droneubuntu2204:1", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++-15', CXXSTD: '03,11,14,17,20,2b' }, | ||||
|         "clang-15", | ||||
|         ["deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-15 main"], | ||||
|     ), | ||||
|  | ||||
|     macos_pipeline( | ||||
|         "MacOS 10.15 Xcode 12.2 UBSAN", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++', CXXSTD: '03,11,14,1z' } + ubsan, | ||||
|     ), | ||||
|  | ||||
|     macos_pipeline( | ||||
|         "MacOS 10.15 Xcode 12.2 ASAN", | ||||
|         { TOOLSET: 'clang', COMPILER: 'clang++', CXXSTD: '03,11,14,1z' } + asan, | ||||
|     ), | ||||
|  | ||||
|     windows_pipeline( | ||||
|         "Windows VS2015 msvc-14.0", | ||||
|         "cppalliance/dronevs2015", | ||||
|         { TOOLSET: 'msvc-14.0', CXXSTD: '14,latest' }, | ||||
|     ), | ||||
|  | ||||
|     windows_pipeline( | ||||
|         "Windows VS2017 msvc-14.1", | ||||
|         "cppalliance/dronevs2017", | ||||
|         { TOOLSET: 'msvc-14.1', CXXSTD: '14,17,latest' }, | ||||
|     ), | ||||
|  | ||||
|     windows_pipeline( | ||||
|         "Windows VS2019 msvc-14.2", | ||||
|         "cppalliance/dronevs2019", | ||||
|         { TOOLSET: 'msvc-14.2', CXXSTD: '14,17,20,latest' }, | ||||
|     ), | ||||
|  | ||||
|     windows_pipeline( | ||||
|         "Windows VS2022 msvc-14.3", | ||||
|         "cppalliance/dronevs2022:1", | ||||
|         { TOOLSET: 'msvc-14.3', CXXSTD: '14,17,20,latest' }, | ||||
|     ), | ||||
| ] | ||||
							
								
								
									
										23
									
								
								.drone/drone.bat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.drone/drone.bat
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| @REM Copyright 2022 Peter Dimov | ||||
| @REM Distributed under the Boost Software License, Version 1.0. | ||||
| @REM https://www.boost.org/LICENSE_1_0.txt | ||||
|  | ||||
| @ECHO ON | ||||
|  | ||||
| set LIBRARY=%1 | ||||
| set DRONE_BUILD_DIR=%CD% | ||||
|  | ||||
| set BOOST_BRANCH=develop | ||||
| if "%DRONE_BRANCH%" == "master" set BOOST_BRANCH=master | ||||
| cd .. | ||||
| git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root | ||||
| cd boost-root | ||||
| git submodule update --init tools/boostdep | ||||
| xcopy /s /e /q %DRONE_BUILD_DIR% libs\%LIBRARY%\ | ||||
| python tools/boostdep/depinst/depinst.py %LIBRARY% | ||||
| cmd /c bootstrap | ||||
| b2 -d0 headers | ||||
|  | ||||
| if not "%CXXSTD%" == "" set CXXSTD=cxxstd=%CXXSTD% | ||||
| if not "%ADDRMD%" == "" set ADDRMD=address-model=%ADDRMD% | ||||
| b2 -j3 libs/%LIBRARY%/test toolset=%TOOLSET% %CXXSTD% %ADDRMD% variant=debug,release embed-manifest-via=linker | ||||
							
								
								
									
										24
									
								
								.drone/drone.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										24
									
								
								.drone/drone.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # Copyright 2022 Peter Dimov | ||||
| # Distributed under the Boost Software License, Version 1.0. | ||||
| # https://www.boost.org/LICENSE_1_0.txt | ||||
|  | ||||
| set -ex | ||||
|  | ||||
| DRONE_BUILD_DIR=$(pwd) | ||||
|  | ||||
| BOOST_BRANCH=develop | ||||
| if [ "$DRONE_BRANCH" = "master" ]; then BOOST_BRANCH=master; fi | ||||
|  | ||||
| cd .. | ||||
| git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root | ||||
| cd boost-root | ||||
| git submodule update --init tools/boostdep | ||||
| cp -r $DRONE_BUILD_DIR/* libs/$LIBRARY | ||||
| python tools/boostdep/depinst/depinst.py $LIBRARY | ||||
| ./bootstrap.sh | ||||
| ./b2 -d0 headers | ||||
|  | ||||
| echo "using $TOOLSET : : $COMPILER ;" > ~/user-config.jam | ||||
| ./b2 -j3 libs/$LIBRARY/test toolset=$TOOLSET cxxstd=$CXXSTD variant=debug,release ${ADDRMD:+address-model=$ADDRMD} ${UBSAN:+undefined-sanitizer=norecover debug-symbols=on} ${ASAN:+address-sanitizer=norecover debug-symbols=on} ${LINKFLAGS:+linkflags=$LINKFLAGS} | ||||
							
								
								
									
										262
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										262
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -19,58 +19,80 @@ jobs: | ||||
|         include: | ||||
|           - toolset: gcc-4.8 | ||||
|             cxxstd: "03,11" | ||||
|             os: ubuntu-18.04 | ||||
|             install: g++-4.8 | ||||
|             os: ubuntu-latest | ||||
|             container: ubuntu:18.04 | ||||
|             install: g++-4.8-multilib | ||||
|             address-model: 32,64 | ||||
|           - toolset: gcc-5 | ||||
|             cxxstd: "03,11,14,1z" | ||||
|             os: ubuntu-18.04 | ||||
|             install: g++-5 | ||||
|             os: ubuntu-latest | ||||
|             container: ubuntu:18.04 | ||||
|             install: g++-5-multilib | ||||
|             address-model: 32,64 | ||||
|           - toolset: gcc-6 | ||||
|             cxxstd: "03,11,14,1z" | ||||
|             os: ubuntu-18.04 | ||||
|             install: g++-6 | ||||
|             os: ubuntu-latest | ||||
|             container: ubuntu:18.04 | ||||
|             install: g++-6-multilib | ||||
|             address-model: 32,64 | ||||
|           - toolset: gcc-7 | ||||
|             cxxstd: "03,11,14,17" | ||||
|             os: ubuntu-18.04 | ||||
|             os: ubuntu-latest | ||||
|             container: ubuntu:18.04 | ||||
|             install: g++-7-multilib | ||||
|             address-model: 32,64 | ||||
|           - toolset: gcc-8 | ||||
|             cxxstd: "03,11,14,17,2a" | ||||
|             os: ubuntu-18.04 | ||||
|             install: g++-8 | ||||
|             os: ubuntu-20.04 | ||||
|             install: g++-8-multilib | ||||
|             address-model: 32,64 | ||||
|           - toolset: gcc-9 | ||||
|             cxxstd: "03,11,14,17,2a" | ||||
|             os: ubuntu-20.04 | ||||
|             install: g++-9-multilib | ||||
|             address-model: 32,64 | ||||
|           - toolset: gcc-10 | ||||
|             cxxstd: "03,11,14,17,2a" | ||||
|             os: ubuntu-20.04 | ||||
|             install: g++-10 | ||||
|             install: g++-10-multilib | ||||
|             address-model: 32,64 | ||||
|           - toolset: gcc-11 | ||||
|             cxxstd: "03,11,14,17,2a" | ||||
|             cxxstd: "03,11,14,17,20" | ||||
|             os: ubuntu-20.04 | ||||
|             install: g++-11 | ||||
|             install: g++-11-multilib | ||||
|             address-model: 32,64 | ||||
|           - toolset: gcc-12 | ||||
|             cxxstd: "03,11,14,17,20,2b" | ||||
|             os: ubuntu-22.04 | ||||
|             install: g++-12-multilib | ||||
|             address-model: 32,64 | ||||
|           - toolset: clang | ||||
|             compiler: clang++-3.9 | ||||
|             cxxstd: "03,11,14" | ||||
|             os: ubuntu-18.04 | ||||
|             os: ubuntu-latest | ||||
|             container: ubuntu:18.04 | ||||
|             install: clang-3.9 | ||||
|           - toolset: clang | ||||
|             compiler: clang++-4.0 | ||||
|             cxxstd: "03,11,14" | ||||
|             os: ubuntu-18.04 | ||||
|             os: ubuntu-latest | ||||
|             container: ubuntu:18.04 | ||||
|             install: clang-4.0 | ||||
|           - toolset: clang | ||||
|             compiler: clang++-5.0 | ||||
|             cxxstd: "03,11,14,1z" | ||||
|             os: ubuntu-18.04 | ||||
|             os: ubuntu-latest | ||||
|             container: ubuntu:18.04 | ||||
|             install: clang-5.0 | ||||
|           - toolset: clang | ||||
|             compiler: clang++-6.0 | ||||
|             cxxstd: "03,11,14,17" | ||||
|             os: ubuntu-18.04 | ||||
|             os: ubuntu-20.04 | ||||
|             install: clang-6.0 | ||||
|           - toolset: clang | ||||
|             compiler: clang++-7 | ||||
|             cxxstd: "03,11,14,17" | ||||
|             os: ubuntu-18.04 | ||||
|             os: ubuntu-20.04 | ||||
|             install: clang-7 | ||||
|           - toolset: clang | ||||
|             compiler: clang++-8 | ||||
| @@ -86,29 +108,47 @@ jobs: | ||||
|             compiler: clang++-10 | ||||
|             cxxstd: "03,11,14,17,2a" | ||||
|             os: ubuntu-20.04 | ||||
|             install: clang-10 | ||||
|           - toolset: clang | ||||
|             compiler: clang++-11 | ||||
|             cxxstd: "03,11,14,17,2a" | ||||
|             os: ubuntu-20.04 | ||||
|             install: clang-11 | ||||
|           - toolset: clang | ||||
|             compiler: clang++-12 | ||||
|             cxxstd: "03,11,14,17,2a" | ||||
|             cxxstd: "03,11,14,17,20" | ||||
|             os: ubuntu-20.04 | ||||
|             install: clang-12 | ||||
|           - toolset: clang | ||||
|             compiler: clang++-13 | ||||
|             cxxstd: "03,11,14,17,20,2b" | ||||
|             os: ubuntu-22.04 | ||||
|             install: clang-13 | ||||
|           - toolset: clang | ||||
|             compiler: clang++-14 | ||||
|             cxxstd: "03,11,14,17,20,2b" | ||||
|             os: ubuntu-22.04 | ||||
|             install: clang-14 | ||||
|           - toolset: clang | ||||
|             cxxstd: "03,11,14,17,2a" | ||||
|             os: macos-10.15 | ||||
|             os: macos-11 | ||||
|  | ||||
|     runs-on: ${{matrix.os}} | ||||
|     container: ${{matrix.container}} | ||||
|  | ||||
|     defaults: | ||||
|       run: | ||||
|         shell: bash | ||||
|  | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - uses: actions/checkout@v3 | ||||
|  | ||||
|       - name: Setup container environment | ||||
|         if: matrix.container | ||||
|         run: | | ||||
|           apt-get update | ||||
|           apt-get -y install sudo python git g++ | ||||
|  | ||||
|       - name: Install packages | ||||
|         if: matrix.install | ||||
|         run: sudo apt install ${{matrix.install}} | ||||
|         run: sudo apt-get -y install ${{matrix.install}} | ||||
|  | ||||
|       - name: Setup Boost | ||||
|         run: | | ||||
| @@ -140,22 +180,26 @@ jobs: | ||||
|       - name: Run tests | ||||
|         run: | | ||||
|           cd ../boost-root | ||||
|           ./b2 -j3 libs/$LIBRARY/test toolset=${{matrix.toolset}} cxxstd=${{matrix.cxxstd}} variant=debug,release | ||||
|           ./b2 -j3 libs/$LIBRARY/test toolset=${{matrix.toolset}} cxxstd=${{matrix.cxxstd}} ${ADDRMD:+address-model=$ADDRMD} variant=debug,release | ||||
|  | ||||
|   windows: | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         include: | ||||
|           - toolset: msvc-14.1 | ||||
|             cxxstd: "14,17,latest" | ||||
|           - toolset: msvc-14.0 | ||||
|             cxxstd: 14,latest | ||||
|             addrmd: 32,64 | ||||
|             os: windows-2016 | ||||
|             os: windows-2019 | ||||
|           - toolset: msvc-14.2 | ||||
|             cxxstd: "14,17,latest" | ||||
|             cxxstd: "14,17,20,latest" | ||||
|             addrmd: 32,64 | ||||
|             os: windows-2019 | ||||
|           - toolset: msvc-14.3 | ||||
|             cxxstd: "14,17,20,latest" | ||||
|             addrmd: 32,64 | ||||
|             os: windows-2022 | ||||
|           - toolset: clang-win | ||||
|             cxxstd: "14,17,latest" | ||||
|             addrmd: 32,64 | ||||
|             os: windows-2022 | ||||
| @@ -167,7 +211,7 @@ jobs: | ||||
|     runs-on: ${{matrix.os}} | ||||
|  | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - uses: actions/checkout@v3 | ||||
|  | ||||
|       - name: Setup Boost | ||||
|         shell: cmd | ||||
| @@ -195,4 +239,160 @@ jobs: | ||||
|         shell: cmd | ||||
|         run: | | ||||
|           cd ../boost-root | ||||
|           b2 -j3 libs/%LIBRARY%/test toolset=${{matrix.toolset}} cxxstd=${{matrix.cxxstd}} address-model=${{matrix.addrmd}} variant=debug,release | ||||
|           b2 -j3 libs/%LIBRARY%/test toolset=${{matrix.toolset}} cxxstd=${{matrix.cxxstd}} address-model=${{matrix.addrmd}} variant=debug,release embed-manifest-via=linker | ||||
|  | ||||
|   posix-cmake-subdir: | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         include: | ||||
|           - os: ubuntu-20.04 | ||||
|           - os: ubuntu-22.04 | ||||
|           - os: macos-11 | ||||
|  | ||||
|     runs-on: ${{matrix.os}} | ||||
|  | ||||
|     steps: | ||||
|       - uses: actions/checkout@v3 | ||||
|  | ||||
|       - name: Install packages | ||||
|         if: matrix.install | ||||
|         run: sudo apt-get -y install ${{matrix.install}} | ||||
|  | ||||
|       - name: Setup Boost | ||||
|         run: | | ||||
|           echo GITHUB_REPOSITORY: $GITHUB_REPOSITORY | ||||
|           LIBRARY=${GITHUB_REPOSITORY#*/} | ||||
|           echo LIBRARY: $LIBRARY | ||||
|           echo "LIBRARY=$LIBRARY" >> $GITHUB_ENV | ||||
|           echo GITHUB_BASE_REF: $GITHUB_BASE_REF | ||||
|           echo GITHUB_REF: $GITHUB_REF | ||||
|           REF=${GITHUB_BASE_REF:-$GITHUB_REF} | ||||
|           REF=${REF#refs/heads/} | ||||
|           echo REF: $REF | ||||
|           BOOST_BRANCH=develop && [ "$REF" == "master" ] && BOOST_BRANCH=master || true | ||||
|           echo BOOST_BRANCH: $BOOST_BRANCH | ||||
|           cd .. | ||||
|           git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root | ||||
|           cd boost-root | ||||
|           cp -r $GITHUB_WORKSPACE/* libs/$LIBRARY | ||||
|           git submodule update --init tools/boostdep | ||||
|           python tools/boostdep/depinst/depinst.py --git_args "--jobs 3" $LIBRARY | ||||
|  | ||||
|       - name: Use library with add_subdirectory | ||||
|         run: | | ||||
|           cd ../boost-root/libs/$LIBRARY/test/cmake_subdir_test | ||||
|           mkdir __build__ && cd __build__ | ||||
|           cmake .. | ||||
|           cmake --build . | ||||
|           ctest --output-on-failure --no-tests=error | ||||
|  | ||||
|   posix-cmake-install: | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         include: | ||||
|           - os: ubuntu-20.04 | ||||
|           - os: ubuntu-22.04 | ||||
|           - os: macos-11 | ||||
|  | ||||
|     runs-on: ${{matrix.os}} | ||||
|  | ||||
|     steps: | ||||
|       - uses: actions/checkout@v3 | ||||
|  | ||||
|       - name: Install packages | ||||
|         if: matrix.install | ||||
|         run: sudo apt-get -y install ${{matrix.install}} | ||||
|  | ||||
|       - name: Setup Boost | ||||
|         run: | | ||||
|           echo GITHUB_REPOSITORY: $GITHUB_REPOSITORY | ||||
|           LIBRARY=${GITHUB_REPOSITORY#*/} | ||||
|           echo LIBRARY: $LIBRARY | ||||
|           echo "LIBRARY=$LIBRARY" >> $GITHUB_ENV | ||||
|           echo GITHUB_BASE_REF: $GITHUB_BASE_REF | ||||
|           echo GITHUB_REF: $GITHUB_REF | ||||
|           REF=${GITHUB_BASE_REF:-$GITHUB_REF} | ||||
|           REF=${REF#refs/heads/} | ||||
|           echo REF: $REF | ||||
|           BOOST_BRANCH=develop && [ "$REF" == "master" ] && BOOST_BRANCH=master || true | ||||
|           echo BOOST_BRANCH: $BOOST_BRANCH | ||||
|           cd .. | ||||
|           git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root | ||||
|           cd boost-root | ||||
|           cp -r $GITHUB_WORKSPACE/* libs/$LIBRARY | ||||
|           git submodule update --init tools/boostdep | ||||
|           python tools/boostdep/depinst/depinst.py --git_args "--jobs 3" $LIBRARY | ||||
|  | ||||
|       - name: Configure | ||||
|         run: | | ||||
|           cd ../boost-root | ||||
|           mkdir __build__ && cd __build__ | ||||
|           cmake -DBOOST_INCLUDE_LIBRARIES=$LIBRARY -DCMAKE_INSTALL_PREFIX=~/.local .. | ||||
|  | ||||
|       - name: Install | ||||
|         run: | | ||||
|           cd ../boost-root/__build__ | ||||
|           cmake --build . --target install | ||||
|  | ||||
|       - name: Use the installed library | ||||
|         run: | | ||||
|           cd ../boost-root/libs/$LIBRARY/test/cmake_install_test && mkdir __build__ && cd __build__ | ||||
|           cmake -DCMAKE_INSTALL_PREFIX=~/.local .. | ||||
|           cmake --build . | ||||
|           ctest --output-on-failure --no-tests=error | ||||
|  | ||||
|   posix-cmake-test: | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         include: | ||||
|           - os: ubuntu-20.04 | ||||
|           - os: ubuntu-22.04 | ||||
|           - os: macos-11 | ||||
|  | ||||
|     runs-on: ${{matrix.os}} | ||||
|  | ||||
|     steps: | ||||
|       - uses: actions/checkout@v3 | ||||
|  | ||||
|       - name: Install packages | ||||
|         if: matrix.install | ||||
|         run: sudo apt-get -y install ${{matrix.install}} | ||||
|  | ||||
|       - name: Setup Boost | ||||
|         run: | | ||||
|           echo GITHUB_REPOSITORY: $GITHUB_REPOSITORY | ||||
|           LIBRARY=${GITHUB_REPOSITORY#*/} | ||||
|           echo LIBRARY: $LIBRARY | ||||
|           echo "LIBRARY=$LIBRARY" >> $GITHUB_ENV | ||||
|           echo GITHUB_BASE_REF: $GITHUB_BASE_REF | ||||
|           echo GITHUB_REF: $GITHUB_REF | ||||
|           REF=${GITHUB_BASE_REF:-$GITHUB_REF} | ||||
|           REF=${REF#refs/heads/} | ||||
|           echo REF: $REF | ||||
|           BOOST_BRANCH=develop && [ "$REF" == "master" ] && BOOST_BRANCH=master || true | ||||
|           echo BOOST_BRANCH: $BOOST_BRANCH | ||||
|           cd .. | ||||
|           git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root | ||||
|           cd boost-root | ||||
|           cp -r $GITHUB_WORKSPACE/* libs/$LIBRARY | ||||
|           git submodule update --init tools/boostdep | ||||
|           python tools/boostdep/depinst/depinst.py --git_args "--jobs 3" $LIBRARY | ||||
|  | ||||
|       - name: Configure | ||||
|         run: | | ||||
|           cd ../boost-root | ||||
|           mkdir __build__ && cd __build__ | ||||
|           cmake -DBOOST_INCLUDE_LIBRARIES=$LIBRARY -DBUILD_TESTING=ON .. | ||||
|  | ||||
|       - name: Build tests | ||||
|         run: | | ||||
|           cd ../boost-root/__build__ | ||||
|           cmake --build . --target tests | ||||
|  | ||||
|       - name: Run tests | ||||
|         run: | | ||||
|           cd ../boost-root/__build__ | ||||
|           ctest --output-on-failure --no-tests=error | ||||
|   | ||||
							
								
								
									
										20
									
								
								appveyor.yml
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								appveyor.yml
									
									
									
									
									
								
							| @@ -51,25 +51,9 @@ install: | ||||
|   - cd .. | ||||
|   - git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root | ||||
|   - cd boost-root | ||||
|   - git submodule init libs/align | ||||
|   - git submodule init libs/assert | ||||
|   - git submodule init libs/atomic | ||||
|   - git submodule init libs/config | ||||
|   - git submodule init libs/container_hash | ||||
|   - git submodule init libs/core | ||||
|   - git submodule init libs/move | ||||
|   - git submodule init libs/predef | ||||
|   - git submodule init libs/static_assert | ||||
|   - git submodule init libs/throw_exception | ||||
|   - git submodule init libs/type_traits | ||||
|   - git submodule init libs/detail | ||||
|   - git submodule init libs/integer | ||||
|   - git submodule init tools/build | ||||
|   - git submodule init libs/headers | ||||
|   - git submodule init tools/boost_install | ||||
|   - git submodule init libs/bind | ||||
|   - git submodule update --jobs 3 | ||||
|   - xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\smart_ptr\ | ||||
|   - git submodule update --init tools/boostdep | ||||
|   - python tools/boostdep/depinst/depinst.py smart_ptr | ||||
|   - cmd /c bootstrap | ||||
|   - b2 -d0 headers | ||||
|  | ||||
|   | ||||
| @@ -27,7 +27,7 @@ | ||||
| #include <boost/smart_ptr/detail/sp_counted_impl.hpp> | ||||
| #include <boost/smart_ptr/detail/sp_disable_deprecated.hpp> | ||||
| #include <boost/smart_ptr/detail/sp_noexcept.hpp> | ||||
| #include <boost/checked_delete.hpp> | ||||
| #include <boost/core/checked_delete.hpp> | ||||
| #include <boost/throw_exception.hpp> | ||||
| #include <boost/core/addressof.hpp> | ||||
| #include <boost/config.hpp> | ||||
|   | ||||
| @@ -35,8 +35,6 @@ BOOST_PRAGMA_MESSAGE("Using CodeWarrior/PowerPC sp_counted_base") | ||||
|  | ||||
| #endif | ||||
|  | ||||
| BOOST_SP_OBSOLETE() | ||||
|  | ||||
| namespace boost | ||||
| { | ||||
|  | ||||
| @@ -64,7 +62,11 @@ inline long atomic_decrement( register long * pw ) | ||||
|  | ||||
|     asm | ||||
|     { | ||||
| #if defined(__PPCZen__) || defined(__PPCe500__) || defined(__PPCe500v2__) | ||||
|     msync | ||||
| #else | ||||
|     sync | ||||
| #endif | ||||
|  | ||||
| loop: | ||||
|  | ||||
|   | ||||
| @@ -24,7 +24,7 @@ | ||||
|  | ||||
| #include <boost/smart_ptr/detail/sp_counted_base.hpp> | ||||
| #include <boost/smart_ptr/detail/sp_noexcept.hpp> | ||||
| #include <boost/checked_delete.hpp> | ||||
| #include <boost/core/checked_delete.hpp> | ||||
| #include <boost/core/addressof.hpp> | ||||
| #include <boost/config.hpp> | ||||
|  | ||||
|   | ||||
| @@ -30,7 +30,16 @@ class spinlock | ||||
| { | ||||
| public: | ||||
|  | ||||
|     unsigned char v_; | ||||
|     // `bool` alignment is required for Apple PPC32 | ||||
|     // https://github.com/boostorg/smart_ptr/issues/105 | ||||
|     // https://github.com/PurpleI2P/i2pd/issues/1726 | ||||
|     // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107590 | ||||
|  | ||||
|     union | ||||
|     { | ||||
|         unsigned char v_; | ||||
|         bool align_; | ||||
|     }; | ||||
|  | ||||
| public: | ||||
|  | ||||
| @@ -80,6 +89,6 @@ public: | ||||
| } // namespace detail | ||||
| } // namespace boost | ||||
|  | ||||
| #define BOOST_DETAIL_SPINLOCK_INIT {0} | ||||
| #define BOOST_DETAIL_SPINLOCK_INIT {{0}} | ||||
|  | ||||
| #endif // #ifndef BOOST_SMART_PTR_DETAIL_SPINLOCK_GCC_ATOMIC_HPP_INCLUDED | ||||
|   | ||||
| @@ -245,7 +245,7 @@ template<class T, class U> inline bool operator!=(T * a, intrusive_ptr<U> const | ||||
|     return a != b.get(); | ||||
| } | ||||
|  | ||||
| #if __GNUC__ == 2 && __GNUC_MINOR__ <= 96 | ||||
| #if defined(__GNUC__) && __GNUC__ == 2 && __GNUC_MINOR__ <= 96 | ||||
|  | ||||
| // Resolve the ambiguity between our op!= and the one in rel_ops | ||||
|  | ||||
|   | ||||
| @@ -12,7 +12,7 @@ | ||||
|  | ||||
| #include <boost/config.hpp> | ||||
| #include <boost/assert.hpp> | ||||
| #include <boost/checked_delete.hpp> | ||||
| #include <boost/core/checked_delete.hpp> | ||||
| #include <boost/smart_ptr/detail/sp_nullptr_t.hpp> | ||||
| #include <boost/smart_ptr/detail/sp_noexcept.hpp> | ||||
|  | ||||
|   | ||||
| @@ -12,7 +12,7 @@ | ||||
|  | ||||
| #include <boost/config.hpp> | ||||
| #include <boost/assert.hpp> | ||||
| #include <boost/checked_delete.hpp> | ||||
| #include <boost/core/checked_delete.hpp> | ||||
| #include <boost/smart_ptr/detail/sp_nullptr_t.hpp> | ||||
| #include <boost/smart_ptr/detail/sp_disable_deprecated.hpp> | ||||
| #include <boost/smart_ptr/detail/sp_noexcept.hpp> | ||||
|   | ||||
| @@ -19,7 +19,7 @@ | ||||
| #include <memory>             // TR1 cyclic inclusion fix | ||||
|  | ||||
| #include <boost/assert.hpp> | ||||
| #include <boost/checked_delete.hpp> | ||||
| #include <boost/core/checked_delete.hpp> | ||||
|  | ||||
| #include <boost/smart_ptr/shared_ptr.hpp> | ||||
| #include <boost/smart_ptr/detail/shared_count.hpp> | ||||
|   | ||||
| @@ -19,7 +19,7 @@ | ||||
| #include <boost/smart_ptr/detail/sp_nullptr_t.hpp> | ||||
| #include <boost/smart_ptr/detail/sp_disable_deprecated.hpp> | ||||
| #include <boost/smart_ptr/detail/sp_noexcept.hpp> | ||||
| #include <boost/checked_delete.hpp> | ||||
| #include <boost/core/checked_delete.hpp> | ||||
| #include <boost/throw_exception.hpp> | ||||
| #include <boost/assert.hpp> | ||||
| #include <boost/config.hpp> | ||||
| @@ -667,9 +667,8 @@ public: | ||||
|  | ||||
| #if !defined( BOOST_NO_CXX11_RVALUE_REFERENCES ) | ||||
|  | ||||
|     shared_ptr( shared_ptr && r ) BOOST_SP_NOEXCEPT : px( r.px ), pn() | ||||
|     shared_ptr( shared_ptr && r ) BOOST_SP_NOEXCEPT : px( r.px ), pn( static_cast< boost::detail::shared_count && >( r.pn ) ) | ||||
|     { | ||||
|         pn.swap( r.pn ); | ||||
|         r.px = 0; | ||||
|     } | ||||
|  | ||||
| @@ -683,11 +682,9 @@ public: | ||||
|     shared_ptr( shared_ptr<Y> && r ) | ||||
|  | ||||
| #endif | ||||
|     BOOST_SP_NOEXCEPT : px( r.px ), pn() | ||||
|     BOOST_SP_NOEXCEPT : px( r.px ), pn( static_cast< boost::detail::shared_count && >( r.pn ) ) | ||||
|     { | ||||
|         boost::detail::sp_assert_convertible< Y, T >(); | ||||
|  | ||||
|         pn.swap( r.pn ); | ||||
|         r.px = 0; | ||||
|     } | ||||
|  | ||||
|   | ||||
							
								
								
									
										12
									
								
								test/Jamfile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								test/Jamfile
									
									
									
									
									
								
							| @@ -64,7 +64,13 @@ run spinlock_pool_test.cpp | ||||
|   <toolset>msvc-9.0,<variant>release:<build>no ; | ||||
|  | ||||
| run make_shared_test.cpp ; | ||||
| run make_shared_move_emulation_test.cpp ; | ||||
| run make_shared_move_emulation_test.cpp | ||||
|   : : : | ||||
|   <toolset>clang-3.5,<cxxstd>03:<build>no | ||||
|   <toolset>clang-3.6,<cxxstd>03:<build>no | ||||
|   <toolset>clang-3.7,<cxxstd>03:<build>no | ||||
|   ; | ||||
|  | ||||
| run make_shared_perfect_forwarding_test.cpp ; | ||||
| run shared_ptr_convertible_test.cpp ; | ||||
| run wp_convertible_test.cpp ; | ||||
| @@ -366,7 +372,9 @@ compile sp_pedantic_test.cpp | ||||
|   : <warnings>pedantic | ||||
|     <toolset>msvc:<warnings-as-errors>on | ||||
|     <toolset>gcc:<warnings-as-errors>on | ||||
|     <toolset>clang:<warnings-as-errors>on ; | ||||
|     <toolset>clang:<warnings-as-errors>on | ||||
|     <toolset>clang-15:<cxxflags>-Wno-deprecated-builtins | ||||
|     ; | ||||
|  | ||||
| run sp_owner_before_test.cpp ; | ||||
| run sp_owner_equals_test.cpp ; | ||||
|   | ||||
| @@ -296,8 +296,6 @@ void test() | ||||
|     BOOST_TEST( sup2.use_count() == 2 ); | ||||
|  | ||||
|     std::cout << "OK\n"; | ||||
|  | ||||
|     new char[12345]; // deliberate memory leak to verify leaks detected | ||||
| } | ||||
|  | ||||
| int main() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user