Compare commits

...

5 Commits

Author SHA1 Message Date
Peter Dimov
8ec9323003 Update .travis.yml 2019-07-25 08:06:10 +03:00
Peter Dimov
c39ca938a6 Set Travis to Trusty 2019-07-25 07:59:38 +03:00
jrmarsha
4b25a75c03 Merge branch 'develop' into develop 2019-04-29 15:05:21 -04:00
Josh Marshall
5682111fad Whitespace 2019-04-29 13:24:59 -04:00
Josh Marshall
1694b32e1b Fixing another -Wswitch-enum warning. 2019-04-29 12:29:22 -04:00
2 changed files with 37 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 2016, 2017, 2018 Peter Dimov # Copyright 2016-2019 Peter Dimov
# Distributed under the Boost Software License, Version 1.0. # 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) # (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
@@ -6,6 +6,8 @@ language: cpp
sudo: false sudo: false
dist: trusty
branches: branches:
only: only:
- master - master
@@ -24,7 +26,7 @@ matrix:
include: include:
- os: linux - os: linux
compiler: g++ compiler: g++
env: TOOLSET=gcc CXXSTD=03,11 VARIANT=debug,release env: TOOLSET=gcc CXXSTD=03,11
- os: linux - os: linux
compiler: g++-4.4 compiler: g++-4.4
@@ -97,7 +99,7 @@ matrix:
- os: linux - os: linux
compiler: g++-7 compiler: g++-7
env: TOOLSET=gcc CXXSTD=03,11,14,17 VARIANT=release env: TOOLSET=gcc CXXSTD=03,11,14,17
addons: addons:
apt: apt:
packages: packages:
@@ -115,6 +117,16 @@ matrix:
sources: sources:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
- os: linux
compiler: g++-9
env: TOOLSET=gcc CXXSTD=03,11,14,17,2a
addons:
apt:
packages:
- g++-9
sources:
- ubuntu-toolchain-r-test
- os: linux - os: linux
compiler: g++-7 compiler: g++-7
env: UBSAN=1 TOOLSET=gcc CXXSTD=03,11,14,17 UBSAN_OPTIONS=print_stacktrace=1 LINKFLAGS=-fuse-ld=gold env: UBSAN=1 TOOLSET=gcc CXXSTD=03,11,14,17 UBSAN_OPTIONS=print_stacktrace=1 LINKFLAGS=-fuse-ld=gold
@@ -127,7 +139,7 @@ matrix:
- os: linux - os: linux
compiler: clang++ compiler: clang++
env: TOOLSET=clang CXXSTD=03,11 VARIANT=debug,release env: TOOLSET=clang CXXSTD=03,11
- os: linux - os: linux
compiler: /usr/bin/clang++ compiler: /usr/bin/clang++
@@ -216,7 +228,7 @@ matrix:
- os: linux - os: linux
compiler: clang++-5.0 compiler: clang++-5.0
env: TOOLSET=clang CXXSTD=03,11,14,1z VARIANT=release env: TOOLSET=clang CXXSTD=03,11,14,1z
addons: addons:
apt: apt:
packages: packages:
@@ -248,19 +260,30 @@ matrix:
- llvm-toolchain-trusty-7 - llvm-toolchain-trusty-7
- os: linux - os: linux
compiler: clang++-5.0 compiler: clang++-8
env: UBSAN=1 TOOLSET=clang CXXSTD=03,11,14,1z UBSAN_OPTIONS=print_stacktrace=1 env: TOOLSET=clang CXXSTD=03,11,14,17,2a
addons: addons:
apt: apt:
packages: packages:
- clang-5.0 - clang-8
sources: sources:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0 - llvm-toolchain-trusty-8
- os: linux
compiler: clang++-8
env: UBSAN=1 TOOLSET=clang CXXSTD=03,11,14,17,2a UBSAN_OPTIONS=print_stacktrace=1
addons:
apt:
packages:
- clang-8
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-8
- os: linux - os: linux
compiler: clang++-libc++ compiler: clang++-libc++
env: TOOLSET=clang CXXSTD=03,11,14,1z VARIANT=release env: TOOLSET=clang CXXSTD=03,11,14,1z
addons: addons:
apt: apt:
packages: packages:
@@ -292,7 +315,7 @@ install:
script: script:
- |- - |-
echo "using $TOOLSET : : $TRAVIS_COMPILER ;" > ~/user-config.jam echo "using $TOOLSET : : $TRAVIS_COMPILER ;" > ~/user-config.jam
- ./b2 -j3 libs/function/test toolset=$TOOLSET cxxstd=$CXXSTD ${VARIANT:+variant=$VARIANT} ${UBSAN:+cxxflags=-fsanitize=undefined cxxflags=-fno-sanitize-recover=undefined linkflags=-fsanitize=undefined debug-symbols=on} ${LINKFLAGS:+linkflags=$LINKFLAGS} - ./b2 -j3 libs/function/test toolset=$TOOLSET cxxstd=$CXXSTD variant=debug,release ${UBSAN:+cxxflags=-fsanitize=undefined cxxflags=-fno-sanitize-recover=undefined linkflags=-fsanitize=undefined debug-symbols=on} ${LINKFLAGS:+linkflags=$LINKFLAGS}
notifications: notifications:
email: email:

View File

@@ -400,8 +400,7 @@ namespace boost {
out_buffer.members.type.type = &boost::typeindex::type_id<functor_type>().type_info(); out_buffer.members.type.type = &boost::typeindex::type_id<functor_type>().type_info();
out_buffer.members.type.const_qualified = false; out_buffer.members.type.const_qualified = false;
out_buffer.members.type.volatile_qualified = false; out_buffer.members.type.volatile_qualified = false;
} } else {
else {
manager(in_buffer, out_buffer, op, tag_type()); manager(in_buffer, out_buffer, op, tag_type());
} }
} }
@@ -507,16 +506,12 @@ namespace boost {
functor_manager_operation_type op) functor_manager_operation_type op)
{ {
typedef typename get_function_tag<functor_type>::type tag_type; typedef typename get_function_tag<functor_type>::type tag_type;
switch (op) { if (op == get_functor_type_tag) {
case get_functor_type_tag:
out_buffer.members.type.type = &boost::typeindex::type_id<functor_type>().type_info(); out_buffer.members.type.type = &boost::typeindex::type_id<functor_type>().type_info();
out_buffer.members.type.const_qualified = false; out_buffer.members.type.const_qualified = false;
out_buffer.members.type.volatile_qualified = false; out_buffer.members.type.volatile_qualified = false;
return; } else {
default:
manager(in_buffer, out_buffer, op, tag_type()); manager(in_buffer, out_buffer, op, tag_type());
return;
} }
} }
}; };