forked from boostorg/config
448
.travis.yml
Normal file
448
.travis.yml
Normal file
@@ -0,0 +1,448 @@
|
|||||||
|
# Copyright 2016, 2017 Peter Dimov
|
||||||
|
# Distributed under the Boost Software License, Version 1.0.
|
||||||
|
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
language: cpp
|
||||||
|
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
python: "2.7"
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- develop
|
||||||
|
|
||||||
|
env:
|
||||||
|
matrix:
|
||||||
|
- BOGUS_JOB=true
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
|
||||||
|
exclude:
|
||||||
|
- env: BOGUS_JOB=true
|
||||||
|
|
||||||
|
include:
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++ CXXSTD=c++03
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-4.7 CXXSTD=c++03
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-4.7
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-4.7 CXXSTD=c++11
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-4.7
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-4.8 CXXSTD=c++03
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-4.8
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-4.8 CXXSTD=c++11
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-4.8
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-4.9 CXXSTD=c++03
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-4.9
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-4.9 CXXSTD=c++11
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-4.9
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-5 CXXSTD=c++03
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-5
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-5 CXXSTD=c++11
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-5
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-5 CXXSTD=c++14
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-5
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++03
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-6
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++11
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-6
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++14
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-6
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++1z
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-6
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=gnu++03
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-6
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=gnu++11
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-6
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=gnu++14
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-6
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=gnu++1z
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-6
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++03
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++11
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-3.5 CXXSTD=c++03
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.5
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-precise-3.5
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-3.5 CXXSTD=c++11
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.5
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-precise-3.5
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-3.6 CXXSTD=c++03
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.6
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-precise-3.6
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-3.6 CXXSTD=c++11
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.6
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-precise-3.6
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-3.7 CXXSTD=c++03
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.7
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-precise-3.7
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-3.7 CXXSTD=c++11
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.7
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-precise-3.7
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-3.8 CXXSTD=c++03
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.8
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-precise-3.8
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-3.8 CXXSTD=c++11
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.8
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-precise-3.8
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-3.8 CXXSTD=c++14
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.8
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-precise-3.8
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-3.8 CXXSTD=c++1z
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.8
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-precise-3.8
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-3.9 CXXSTD=c++03
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.9
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-precise-3.9
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-3.9 CXXSTD=c++11
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.9
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-precise-3.9
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-3.9 CXXSTD=c++14
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.9
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-precise-3.9
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-3.9 CXXSTD=c++1z
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.9
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-precise-3.9
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++03
|
||||||
|
osx_image: xcode8.3
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++11
|
||||||
|
osx_image: xcode8.3
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14
|
||||||
|
osx_image: xcode8.3
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++1z
|
||||||
|
osx_image: xcode8.3
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++03
|
||||||
|
osx_image: xcode8.2
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++11
|
||||||
|
osx_image: xcode8.2
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14
|
||||||
|
osx_image: xcode8.2
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++1z
|
||||||
|
osx_image: xcode8.1
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++03
|
||||||
|
osx_image: xcode8.1
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++11
|
||||||
|
osx_image: xcode8.1
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14
|
||||||
|
osx_image: xcode8.1
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++1z
|
||||||
|
osx_image: xcode8.1
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++03
|
||||||
|
osx_image: xcode8.0
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++11
|
||||||
|
osx_image: xcode8.0
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14
|
||||||
|
osx_image: xcode8.0
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++1z
|
||||||
|
osx_image: xcode8.0
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++03
|
||||||
|
osx_image: xcode7.3
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++11
|
||||||
|
osx_image: xcode7.3
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14
|
||||||
|
osx_image: xcode7.3
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++1z
|
||||||
|
osx_image: xcode7.3
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++03
|
||||||
|
osx_image: xcode6.4
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++11
|
||||||
|
osx_image: xcode6.4
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14
|
||||||
|
osx_image: xcode6.4
|
||||||
|
|
||||||
|
- os: osx
|
||||||
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++1z
|
||||||
|
osx_image: xcode6.4
|
||||||
|
|
||||||
|
install:
|
||||||
|
- cd ..
|
||||||
|
- git clone -b $TRAVIS_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
|
||||||
|
- cd boost-root
|
||||||
|
- git submodule update --init tools/build
|
||||||
|
- git submodule update --init libs/config
|
||||||
|
- git submodule update --init tools/boostdep
|
||||||
|
- cp -r $TRAVIS_BUILD_DIR/* libs/config
|
||||||
|
- python tools/boostdep/depinst/depinst.py config
|
||||||
|
- ./bootstrap.sh
|
||||||
|
- ./b2 headers
|
||||||
|
|
||||||
|
script:
|
||||||
|
- |-
|
||||||
|
echo "using $TOOLSET : : $COMPILER : <cxxflags>-std=$CXXSTD ;" > ~/user-config.jam
|
||||||
|
- (cd libs/config/test && ../../../b2 config_info_travis_install toolset=$TOOLSET && ./config_info_travis)
|
||||||
|
- ./b2 -j3 libs/config/test toolset=$TOOLSET
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
email:
|
||||||
|
on_success: always
|
47
appveyor.yml
Normal file
47
appveyor.yml
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
# Copyright 2016 Peter Dimov
|
||||||
|
# Distributed under the Boost Software License, Version 1.0.
|
||||||
|
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
version: 1.0.{build}-{branch}
|
||||||
|
|
||||||
|
shallow_clone: true
|
||||||
|
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- develop
|
||||||
|
|
||||||
|
platform:
|
||||||
|
- x64
|
||||||
|
|
||||||
|
environment:
|
||||||
|
matrix:
|
||||||
|
- ARGS: --toolset=msvc-9.0 address-model=32
|
||||||
|
- ARGS: --toolset=msvc-10.0 address-model=32
|
||||||
|
- ARGS: --toolset=msvc-11.0 address-model=32
|
||||||
|
- ARGS: --toolset=msvc-12.0 address-model=32
|
||||||
|
- ARGS: --toolset=msvc-14.0 address-model=32
|
||||||
|
- ARGS: --toolset=msvc-12.0 address-model=64
|
||||||
|
- ARGS: --toolset=msvc-14.0 address-model=64
|
||||||
|
|
||||||
|
install:
|
||||||
|
- cd ..
|
||||||
|
- git clone -b %APPVEYOR_REPO_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
|
||||||
|
- cd boost-root
|
||||||
|
- git submodule update --init tools/build
|
||||||
|
- git submodule update --init libs/config
|
||||||
|
- git submodule update --init tools/boostdep
|
||||||
|
- python tools/boostdep/depinst/depinst.py config
|
||||||
|
- bootstrap
|
||||||
|
- b2 headers
|
||||||
|
- dir
|
||||||
|
|
||||||
|
build: off
|
||||||
|
|
||||||
|
test_script:
|
||||||
|
- dir
|
||||||
|
- cd libs\config\test
|
||||||
|
- ..\..\..\b2 config_info_travis_install %ARGS%
|
||||||
|
- dir
|
||||||
|
- config_info_travis
|
||||||
|
- ..\..\..\b2 -j3 %ARGS%
|
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# *** DO NOT EDIT THIS FILE BY HAND ***
|
# *** DO NOT EDIT THIS FILE BY HAND ***
|
||||||
# This file was automatically generated on Mon Apr 17 18:35:54 2017
|
# This file was automatically generated on Wed May 17 01:29:40 2017
|
||||||
# by libs/config/tools/generate.cpp
|
# by libs/config/tools/generate.cpp
|
||||||
# Copyright John Maddock.
|
# Copyright John Maddock.
|
||||||
# Use, modification and distribution are subject to the
|
# Use, modification and distribution are subject to the
|
||||||
@@ -107,6 +107,7 @@ obj cxx11_hdr_unordered_set : test_case.cpp : <define>TEST_BOOST_NO_CXX11_HDR_UN
|
|||||||
obj cxx11_inline_namespaces : test_case.cpp : <define>TEST_BOOST_NO_CXX11_INLINE_NAMESPACES ;
|
obj cxx11_inline_namespaces : test_case.cpp : <define>TEST_BOOST_NO_CXX11_INLINE_NAMESPACES ;
|
||||||
obj cxx11_non_public_defaulted_functions : test_case.cpp : <define>TEST_BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS ;
|
obj cxx11_non_public_defaulted_functions : test_case.cpp : <define>TEST_BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS ;
|
||||||
obj cxx11_numeric_limits : test_case.cpp : <define>TEST_BOOST_NO_CXX11_NUMERIC_LIMITS ;
|
obj cxx11_numeric_limits : test_case.cpp : <define>TEST_BOOST_NO_CXX11_NUMERIC_LIMITS ;
|
||||||
|
obj cxx11_pointer_traits : test_case.cpp : <define>TEST_BOOST_NO_CXX11_POINTER_TRAITS ;
|
||||||
obj cxx11_ref_qualifiers : test_case.cpp : <define>TEST_BOOST_NO_CXX11_REF_QUALIFIERS ;
|
obj cxx11_ref_qualifiers : test_case.cpp : <define>TEST_BOOST_NO_CXX11_REF_QUALIFIERS ;
|
||||||
obj cxx11_sfinae_expr : test_case.cpp : <define>TEST_BOOST_NO_CXX11_SFINAE_EXPR ;
|
obj cxx11_sfinae_expr : test_case.cpp : <define>TEST_BOOST_NO_CXX11_SFINAE_EXPR ;
|
||||||
obj cxx11_smart_ptr : test_case.cpp : <define>TEST_BOOST_NO_CXX11_SMART_PTR ;
|
obj cxx11_smart_ptr : test_case.cpp : <define>TEST_BOOST_NO_CXX11_SMART_PTR ;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
// This file was automatically generated on Mon Apr 17 18:35:54 2017
|
// This file was automatically generated on Wed May 17 01:29:40 2017
|
||||||
// by libs/config/tools/generate.cpp
|
// by libs/config/tools/generate.cpp
|
||||||
// Copyright John Maddock 2002-4.
|
// Copyright John Maddock 2002-4.
|
||||||
// Use, modification and distribution are subject to the
|
// Use, modification and distribution are subject to the
|
||||||
@@ -491,6 +491,11 @@
|
|||||||
# error "Defect macro BOOST_NO_CXX11_NUMERIC_LIMITS is defined."
|
# error "Defect macro BOOST_NO_CXX11_NUMERIC_LIMITS is defined."
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef TEST_BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
|
# ifdef BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
|
# error "Defect macro BOOST_NO_CXX11_POINTER_TRAITS is defined."
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
#ifdef TEST_BOOST_NO_CXX11_REF_QUALIFIERS
|
#ifdef TEST_BOOST_NO_CXX11_REF_QUALIFIERS
|
||||||
# ifdef BOOST_NO_CXX11_REF_QUALIFIERS
|
# ifdef BOOST_NO_CXX11_REF_QUALIFIERS
|
||||||
# error "Defect macro BOOST_NO_CXX11_REF_QUALIFIERS is defined."
|
# error "Defect macro BOOST_NO_CXX11_REF_QUALIFIERS is defined."
|
||||||
|
@@ -680,6 +680,8 @@ compilers implementing an early draft of the C++11 standard (in particular, inco
|
|||||||
[[`BOOST_NO_CXX11_NUMERIC_LIMITS`][The standard library `<limits>` header does
|
[[`BOOST_NO_CXX11_NUMERIC_LIMITS`][The standard library `<limits>` header does
|
||||||
not support the C++11 version of `numeric_limits`.
|
not support the C++11 version of `numeric_limits`.
|
||||||
]]
|
]]
|
||||||
|
[[`BOOST_NO_CXX11_POINTER_TRAITS`][The standard library does not provide a
|
||||||
|
C++11 version of `std::pointer_traits` in <memory>.]]
|
||||||
[[`BOOST_NO_CXX11_RANGE_BASED_FOR`][The compiler does not support
|
[[`BOOST_NO_CXX11_RANGE_BASED_FOR`][The compiler does not support
|
||||||
range-based for statements.
|
range-based for statements.
|
||||||
]]
|
]]
|
||||||
|
@@ -147,6 +147,13 @@
|
|||||||
# define BOOST_NO_CXX11_STD_ALIGN
|
# define BOOST_NO_CXX11_STD_ALIGN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Before 650 std::pointer_traits has a broken rebind template
|
||||||
|
#if !defined(_CPPLIB_VER) || _CPPLIB_VER < 650
|
||||||
|
# define BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
|
#elif defined(BOOST_MSVC) && BOOST_MSVC < 1910
|
||||||
|
# define BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__has_include)
|
#if defined(__has_include)
|
||||||
#if !__has_include(<shared_mutex>)
|
#if !__has_include(<shared_mutex>)
|
||||||
# define BOOST_NO_CXX14_HDR_SHARED_MUTEX
|
# define BOOST_NO_CXX14_HDR_SHARED_MUTEX
|
||||||
@@ -163,7 +170,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// C++17 features
|
// C++17 features
|
||||||
#if !defined(_CPPLIB_VER) || (_CPPLIB_VER < 650) || !defined(_HAS_CXX17) || (_HAS_CXX17 == 0)
|
#if !defined(_CPPLIB_VER) || (_CPPLIB_VER < 650) || !defined(BOOST_MSVC) || (BOOST_MSVC < 1910) || !defined(_HAS_CXX17) || (_HAS_CXX17 == 0)
|
||||||
# define BOOST_NO_CXX17_STD_APPLY
|
# define BOOST_NO_CXX17_STD_APPLY
|
||||||
#endif
|
#endif
|
||||||
#if !defined(_CPPLIB_VER) || (_CPPLIB_VER < 650)
|
#if !defined(_CPPLIB_VER) || (_CPPLIB_VER < 650)
|
||||||
|
@@ -55,6 +55,7 @@
|
|||||||
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
||||||
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||||
# define BOOST_NO_CXX11_ALLOCATOR
|
# define BOOST_NO_CXX11_ALLOCATOR
|
||||||
|
# define BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_SMART_PTR
|
# define BOOST_NO_CXX11_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
||||||
|
@@ -29,6 +29,7 @@
|
|||||||
// aliases since members rebind_alloc and rebind_traits require it.
|
// aliases since members rebind_alloc and rebind_traits require it.
|
||||||
#if defined(_LIBCPP_HAS_NO_TEMPLATE_ALIASES)
|
#if defined(_LIBCPP_HAS_NO_TEMPLATE_ALIASES)
|
||||||
# define BOOST_NO_CXX11_ALLOCATOR
|
# define BOOST_NO_CXX11_ALLOCATOR
|
||||||
|
# define BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __cplusplus < 201103
|
#if __cplusplus < 201103
|
||||||
@@ -53,6 +54,7 @@
|
|||||||
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
||||||
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||||
# define BOOST_NO_CXX11_ALLOCATOR
|
# define BOOST_NO_CXX11_ALLOCATOR
|
||||||
|
# define BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
# define BOOST_NO_CXX11_SMART_PTR
|
# define BOOST_NO_CXX11_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
||||||
# define BOOST_NO_CXX11_STD_ALIGN
|
# define BOOST_NO_CXX11_STD_ALIGN
|
||||||
@@ -91,6 +93,9 @@
|
|||||||
#if (_LIBCPP_VERSION < 4000) || (__cplusplus <= 201402L)
|
#if (_LIBCPP_VERSION < 4000) || (__cplusplus <= 201402L)
|
||||||
# define BOOST_NO_CXX17_STD_APPLY
|
# define BOOST_NO_CXX17_STD_APPLY
|
||||||
#endif
|
#endif
|
||||||
|
#if (_LIBCPP_VERSION > 4000) && (__cplusplus > 201402L) && !defined(_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR)
|
||||||
|
# define BOOST_NO_AUTO_PTR
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (_LIBCPP_VERSION <= 1101) && !defined(BOOST_NO_CXX11_THREAD_LOCAL)
|
#if (_LIBCPP_VERSION <= 1101) && !defined(BOOST_NO_CXX11_THREAD_LOCAL)
|
||||||
// This is a bit of a sledgehammer, because really it's just libc++abi that has no
|
// This is a bit of a sledgehammer, because really it's just libc++abi that has no
|
||||||
|
@@ -148,6 +148,31 @@
|
|||||||
// defining it here is a terrible cludge, but should get things working:
|
// defining it here is a terrible cludge, but should get things working:
|
||||||
extern "C" char *gets (char *__s);
|
extern "C" char *gets (char *__s);
|
||||||
#endif
|
#endif
|
||||||
|
//
|
||||||
|
// clang is unable to parse some GCC headers, add those workarounds here:
|
||||||
|
//
|
||||||
|
#if BOOST_LIBSTDCXX_VERSION < 50000
|
||||||
|
# define BOOST_NO_CXX11_HDR_REGEX
|
||||||
|
#endif
|
||||||
|
//
|
||||||
|
// GCC 4.7.x has no __cxa_thread_atexit which
|
||||||
|
// thread_local objects require for cleanup:
|
||||||
|
//
|
||||||
|
#if BOOST_LIBSTDCXX_VERSION < 40800
|
||||||
|
# define BOOST_NO_CXX11_THREAD_LOCAL
|
||||||
|
#endif
|
||||||
|
//
|
||||||
|
// Early clang versions can handle <chrono>, not exactly sure which versions
|
||||||
|
// but certainly up to clang-3.8 and gcc-4.6:
|
||||||
|
//
|
||||||
|
#if (__clang_major__ < 5)
|
||||||
|
# if BOOST_LIBSTDCXX_VERSION < 40800
|
||||||
|
# define BOOST_NO_CXX11_HDR_FUTURE
|
||||||
|
# define BOOST_NO_CXX11_HDR_MUTEX
|
||||||
|
# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
|
||||||
|
# define BOOST_NO_CXX11_HDR_CHRONO
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// GCC 4.8 and 9 add working versions of <atomic> and <regex> respectively.
|
// GCC 4.8 and 9 add working versions of <atomic> and <regex> respectively.
|
||||||
@@ -231,6 +256,7 @@ extern "C" char *gets (char *__s);
|
|||||||
// so 4.7.0 is the first truly conforming one.
|
// so 4.7.0 is the first truly conforming one.
|
||||||
# define BOOST_NO_CXX11_HDR_CHRONO
|
# define BOOST_NO_CXX11_HDR_CHRONO
|
||||||
# define BOOST_NO_CXX11_ALLOCATOR
|
# define BOOST_NO_CXX11_ALLOCATOR
|
||||||
|
# define BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
#endif
|
#endif
|
||||||
// C++0x features in GCC 4.8.0 and later
|
// C++0x features in GCC 4.8.0 and later
|
||||||
//
|
//
|
||||||
|
@@ -44,6 +44,7 @@
|
|||||||
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
||||||
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||||
# define BOOST_NO_CXX11_ALLOCATOR
|
# define BOOST_NO_CXX11_ALLOCATOR
|
||||||
|
# define BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_SMART_PTR
|
# define BOOST_NO_CXX11_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
||||||
|
@@ -68,6 +68,7 @@
|
|||||||
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
||||||
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||||
# define BOOST_NO_CXX11_ALLOCATOR
|
# define BOOST_NO_CXX11_ALLOCATOR
|
||||||
|
# define BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_SMART_PTR
|
# define BOOST_NO_CXX11_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
||||||
|
@@ -180,6 +180,7 @@
|
|||||||
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
||||||
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||||
# define BOOST_NO_CXX11_ALLOCATOR
|
# define BOOST_NO_CXX11_ALLOCATOR
|
||||||
|
# define BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_SMART_PTR
|
# define BOOST_NO_CXX11_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
||||||
|
@@ -138,6 +138,7 @@
|
|||||||
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
||||||
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||||
# define BOOST_NO_CXX11_ALLOCATOR
|
# define BOOST_NO_CXX11_ALLOCATOR
|
||||||
|
# define BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_SMART_PTR
|
# define BOOST_NO_CXX11_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
||||||
|
@@ -228,6 +228,7 @@ namespace boost { using std::min; using std::max; }
|
|||||||
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
||||||
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||||
# define BOOST_NO_CXX11_ALLOCATOR
|
# define BOOST_NO_CXX11_ALLOCATOR
|
||||||
|
# define BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_SMART_PTR
|
# define BOOST_NO_CXX11_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
||||||
|
@@ -44,6 +44,7 @@
|
|||||||
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
||||||
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||||
# define BOOST_NO_CXX11_ALLOCATOR
|
# define BOOST_NO_CXX11_ALLOCATOR
|
||||||
|
# define BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_SMART_PTR
|
# define BOOST_NO_CXX11_SMART_PTR
|
||||||
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
||||||
|
@@ -31,6 +31,7 @@
|
|||||||
#define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
#define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
||||||
#define BOOST_NO_CXX11_NUMERIC_LIMITS
|
#define BOOST_NO_CXX11_NUMERIC_LIMITS
|
||||||
#define BOOST_NO_CXX11_ALLOCATOR
|
#define BOOST_NO_CXX11_ALLOCATOR
|
||||||
|
#define BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
#define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
#define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
||||||
#define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
#define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
||||||
#define BOOST_NO_CXX11_HDR_UNORDERED_MAP
|
#define BOOST_NO_CXX11_HDR_UNORDERED_MAP
|
||||||
|
@@ -8,6 +8,8 @@
|
|||||||
# the template defined in options_v2.jam.
|
# the template defined in options_v2.jam.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
import testing ;
|
||||||
|
|
||||||
project
|
project
|
||||||
: requirements
|
: requirements
|
||||||
<toolset>gcc:<cxxflags>-Wno-deprecated-declarations
|
<toolset>gcc:<cxxflags>-Wno-deprecated-declarations
|
||||||
@@ -104,3 +106,7 @@ obj has_clang_implicit_fallthrough : cmd_line_check.cpp :
|
|||||||
|
|
||||||
explicit has_clang_implicit_fallthrough ;
|
explicit has_clang_implicit_fallthrough ;
|
||||||
|
|
||||||
|
exe config_info_travis : config_info.cpp ;
|
||||||
|
install config_info_travis_install : config_info_travis : <location>. ;
|
||||||
|
explicit config_info_travis_install ;
|
||||||
|
explicit config_info_travis ;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Regression test Jamfile for boost configuration setup.
|
# Regression test Jamfile for boost configuration setup.
|
||||||
# *** DO NOT EDIT THIS FILE BY HAND ***
|
# *** DO NOT EDIT THIS FILE BY HAND ***
|
||||||
# This file was automatically generated on Mon Apr 17 18:35:54 2017
|
# This file was automatically generated on Wed May 17 01:29:40 2017
|
||||||
# by libs/config/tools/generate.cpp
|
# by libs/config/tools/generate.cpp
|
||||||
# Copyright John Maddock.
|
# Copyright John Maddock.
|
||||||
# Use, modification and distribution are subject to the
|
# Use, modification and distribution are subject to the
|
||||||
@@ -310,6 +310,9 @@ test-suite "BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS" :
|
|||||||
test-suite "BOOST_NO_CXX11_NUMERIC_LIMITS" :
|
test-suite "BOOST_NO_CXX11_NUMERIC_LIMITS" :
|
||||||
[ run ../no_cxx11_numeric_limits_pass.cpp ]
|
[ run ../no_cxx11_numeric_limits_pass.cpp ]
|
||||||
[ compile-fail ../no_cxx11_numeric_limits_fail.cpp ] ;
|
[ compile-fail ../no_cxx11_numeric_limits_fail.cpp ] ;
|
||||||
|
test-suite "BOOST_NO_CXX11_POINTER_TRAITS" :
|
||||||
|
[ run ../no_cxx11_pointer_traits_pass.cpp ]
|
||||||
|
[ compile-fail ../no_cxx11_pointer_traits_fail.cpp ] ;
|
||||||
test-suite "BOOST_NO_CXX11_REF_QUALIFIERS" :
|
test-suite "BOOST_NO_CXX11_REF_QUALIFIERS" :
|
||||||
[ run ../no_cxx11_ref_qualifiers_pass.cpp ]
|
[ run ../no_cxx11_ref_qualifiers_pass.cpp ]
|
||||||
[ compile-fail ../no_cxx11_ref_qualifiers_fail.cpp ] ;
|
[ compile-fail ../no_cxx11_ref_qualifiers_fail.cpp ] ;
|
||||||
|
37
test/boost_no_cxx11_pointer_traits.ipp
Normal file
37
test/boost_no_cxx11_pointer_traits.ipp
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 Glen Joseph Fernandes
|
||||||
|
(glenjofe@gmail.com)
|
||||||
|
|
||||||
|
Distributed under Boost Software License, Version 1.0.
|
||||||
|
(See accompanying file LICENSE_1_0.txt or copy at
|
||||||
|
http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
*/
|
||||||
|
|
||||||
|
// MACRO: BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
|
// TITLE: C++11 <memory> lacks a correct std::pointer_traits
|
||||||
|
// DESCRIPTION: The standard library lacks a working std::pointer_traits.
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
|
namespace boost_no_cxx11_pointer_traits {
|
||||||
|
|
||||||
|
template<class T>
|
||||||
|
struct pointer {
|
||||||
|
template<class U>
|
||||||
|
using rebind = pointer<bool>;
|
||||||
|
};
|
||||||
|
|
||||||
|
template<class T>
|
||||||
|
struct result { };
|
||||||
|
|
||||||
|
template<>
|
||||||
|
struct result<pointer<bool> > {
|
||||||
|
static const int value = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
int test()
|
||||||
|
{
|
||||||
|
return result<std::pointer_traits<pointer<int> >::rebind<char> >::value;
|
||||||
|
}
|
||||||
|
|
||||||
|
} /* boost_no_cxx11_pointer_traits */
|
@@ -14,10 +14,22 @@
|
|||||||
|
|
||||||
namespace boost_no_cxx11_thread_local{
|
namespace boost_no_cxx11_thread_local{
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
int check_local(int n)
|
||||||
|
{
|
||||||
|
static thread_local T s(n, ' ');
|
||||||
|
static thread_local int size = s.size();
|
||||||
|
if(size != n)
|
||||||
|
{
|
||||||
|
s = T(n, ' ');
|
||||||
|
size = n;
|
||||||
|
}
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
int test()
|
int test()
|
||||||
{
|
{
|
||||||
static thread_local std::string local("hello");
|
return check_local<std::string>(5) == 5 ? 0 : 1;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -313,6 +313,13 @@ void print_compiler_macros()
|
|||||||
PRINT_MACRO(_FASTMD);
|
PRINT_MACRO(_FASTMD);
|
||||||
PRINT_MACRO(_MAXVL);
|
PRINT_MACRO(_MAXVL);
|
||||||
|
|
||||||
|
// clang options:
|
||||||
|
PRINT_MACRO(__clang__);
|
||||||
|
PRINT_MACRO(__clang_major__);
|
||||||
|
PRINT_MACRO(__clang_minor__);
|
||||||
|
PRINT_MACRO(__clang_version__);
|
||||||
|
PRINT_MACRO(__clang_patchlevel__);
|
||||||
|
|
||||||
// misc compilers not covered so far:
|
// misc compilers not covered so far:
|
||||||
PRINT_MACRO(__USLC__);
|
PRINT_MACRO(__USLC__);
|
||||||
PRINT_MACRO(__DECCXX);
|
PRINT_MACRO(__DECCXX);
|
||||||
@@ -1048,6 +1055,7 @@ void print_boost_macros()
|
|||||||
PRINT_MACRO(BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS);
|
PRINT_MACRO(BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS);
|
||||||
PRINT_MACRO(BOOST_NO_CXX11_NULLPTR);
|
PRINT_MACRO(BOOST_NO_CXX11_NULLPTR);
|
||||||
PRINT_MACRO(BOOST_NO_CXX11_NUMERIC_LIMITS);
|
PRINT_MACRO(BOOST_NO_CXX11_NUMERIC_LIMITS);
|
||||||
|
PRINT_MACRO(BOOST_NO_CXX11_POINTER_TRAITS);
|
||||||
PRINT_MACRO(BOOST_NO_CXX11_RANGE_BASED_FOR);
|
PRINT_MACRO(BOOST_NO_CXX11_RANGE_BASED_FOR);
|
||||||
PRINT_MACRO(BOOST_NO_CXX11_RAW_LITERALS);
|
PRINT_MACRO(BOOST_NO_CXX11_RAW_LITERALS);
|
||||||
PRINT_MACRO(BOOST_NO_CXX11_REF_QUALIFIERS);
|
PRINT_MACRO(BOOST_NO_CXX11_REF_QUALIFIERS);
|
||||||
@@ -1163,6 +1171,7 @@ void print_boost_macros()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// END GENERATED BLOCK
|
// END GENERATED BLOCK
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
// This file was automatically generated on Mon Apr 17 18:35:54 2017
|
// This file was automatically generated on Wed May 17 01:29:40 2017
|
||||||
// by libs/config/tools/generate.cpp
|
// by libs/config/tools/generate.cpp
|
||||||
// Copyright John Maddock 2002-4.
|
// Copyright John Maddock 2002-4.
|
||||||
// Use, modification and distribution are subject to the
|
// Use, modification and distribution are subject to the
|
||||||
@@ -237,6 +237,11 @@ namespace boost_no_cxx11_non_public_defaulted_functions = empty_boost;
|
|||||||
#else
|
#else
|
||||||
namespace boost_no_cxx11_numeric_limits = empty_boost;
|
namespace boost_no_cxx11_numeric_limits = empty_boost;
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
|
#include "boost_no_cxx11_pointer_traits.ipp"
|
||||||
|
#else
|
||||||
|
namespace boost_no_cxx11_pointer_traits = empty_boost;
|
||||||
|
#endif
|
||||||
#ifndef BOOST_NO_CXX11_REF_QUALIFIERS
|
#ifndef BOOST_NO_CXX11_REF_QUALIFIERS
|
||||||
#include "boost_no_cxx11_ref_qualifiers.ipp"
|
#include "boost_no_cxx11_ref_qualifiers.ipp"
|
||||||
#else
|
#else
|
||||||
@@ -1521,6 +1526,11 @@ int main( int, char *[] )
|
|||||||
std::cerr << "Failed test for BOOST_NO_CXX11_NUMERIC_LIMITS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
std::cerr << "Failed test for BOOST_NO_CXX11_NUMERIC_LIMITS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||||
++error_count;
|
++error_count;
|
||||||
}
|
}
|
||||||
|
if(0 != boost_no_cxx11_pointer_traits::test())
|
||||||
|
{
|
||||||
|
std::cerr << "Failed test for BOOST_NO_CXX11_POINTER_TRAITS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||||
|
++error_count;
|
||||||
|
}
|
||||||
if(0 != boost_no_cxx11_ref_qualifiers::test())
|
if(0 != boost_no_cxx11_ref_qualifiers::test())
|
||||||
{
|
{
|
||||||
std::cerr << "Failed test for BOOST_NO_CXX11_REF_QUALIFIERS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
std::cerr << "Failed test for BOOST_NO_CXX11_REF_QUALIFIERS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||||
|
37
test/no_cxx11_pointer_traits_fail.cpp
Normal file
37
test/no_cxx11_pointer_traits_fail.cpp
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
// This file was automatically generated on Wed May 17 01:29:39 2017
|
||||||
|
// by libs/config/tools/generate.cpp
|
||||||
|
// Copyright John Maddock 2002-4.
|
||||||
|
// Use, modification and distribution are subject to 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)
|
||||||
|
|
||||||
|
// See http://www.boost.org/libs/config for the most recent version.//
|
||||||
|
// Revision $Id$
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
// Test file for macro BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
|
// This file should not compile, if it does then
|
||||||
|
// BOOST_NO_CXX11_POINTER_TRAITS should not be defined.
|
||||||
|
// See file boost_no_cxx11_pointer_traits.ipp for details
|
||||||
|
|
||||||
|
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||||
|
// the objective of this file:
|
||||||
|
#ifdef BOOST_ASSERT_CONFIG
|
||||||
|
# undef BOOST_ASSERT_CONFIG
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
#include "test.hpp"
|
||||||
|
|
||||||
|
#ifdef BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
|
#include "boost_no_cxx11_pointer_traits.ipp"
|
||||||
|
#else
|
||||||
|
#error "this file should not compile"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int main( int, char *[] )
|
||||||
|
{
|
||||||
|
return boost_no_cxx11_pointer_traits::test();
|
||||||
|
}
|
||||||
|
|
37
test/no_cxx11_pointer_traits_pass.cpp
Normal file
37
test/no_cxx11_pointer_traits_pass.cpp
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
// This file was automatically generated on Wed May 17 01:29:39 2017
|
||||||
|
// by libs/config/tools/generate.cpp
|
||||||
|
// Copyright John Maddock 2002-4.
|
||||||
|
// Use, modification and distribution are subject to 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)
|
||||||
|
|
||||||
|
// See http://www.boost.org/libs/config for the most recent version.//
|
||||||
|
// Revision $Id$
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
// Test file for macro BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
|
// This file should compile, if it does not then
|
||||||
|
// BOOST_NO_CXX11_POINTER_TRAITS should be defined.
|
||||||
|
// See file boost_no_cxx11_pointer_traits.ipp for details
|
||||||
|
|
||||||
|
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||||
|
// the objective of this file:
|
||||||
|
#ifdef BOOST_ASSERT_CONFIG
|
||||||
|
# undef BOOST_ASSERT_CONFIG
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
#include "test.hpp"
|
||||||
|
|
||||||
|
#ifndef BOOST_NO_CXX11_POINTER_TRAITS
|
||||||
|
#include "boost_no_cxx11_pointer_traits.ipp"
|
||||||
|
#else
|
||||||
|
namespace boost_no_cxx11_pointer_traits = empty_boost;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int main( int, char *[] )
|
||||||
|
{
|
||||||
|
return boost_no_cxx11_pointer_traits::test();
|
||||||
|
}
|
||||||
|
|
Reference in New Issue
Block a user