Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only allow fvar constructor for convertible types #425

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 38 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,62 +124,72 @@ matrix:
- ubuntu-toolchain-r-test

- os: linux
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++03 TEST_SUITE=quadrature
dist: bionic
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++03 TEST_SUITE="quadrature include=/usr/include/eigen3"
addons:
apt:
packages:
- g++-6
- libgmp-dev
- libmpfr-dev
- libfftw3-dev
- libeigen3-dev
sources:
- ubuntu-toolchain-r-test

- os: linux
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++11 TEST_SUITE=quadrature
dist: bionic
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++11 TEST_SUITE="quadrature include=/usr/include/eigen3"
addons:
apt:
packages:
- g++-6
- libgmp-dev
- libmpfr-dev
- libfftw3-dev
- libeigen3-dev
sources:
- ubuntu-toolchain-r-test

- os: linux
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++14 TEST_SUITE=quadrature
dist: bionic
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++14 TEST_SUITE="quadrature include=/usr/include/eigen3"
addons:
apt:
packages:
- g++-6
- libgmp-dev
- libmpfr-dev
- libfftw3-dev
- libeigen3-dev
sources:
- ubuntu-toolchain-r-test

- os: linux
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=gnu++14 TEST_SUITE=quadrature
dist: bionic
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=gnu++14 TEST_SUITE="quadrature include=/usr/include/eigen3"
addons:
apt:
packages:
- g++-6
- libgmp-dev
- libmpfr-dev
- libfftw3-dev
- libeigen3-dev
sources:
- ubuntu-toolchain-r-test

- os: linux
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++1z TEST_SUITE=quadrature
dist: bionic
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=c++1z TEST_SUITE="quadrature include=/usr/include/eigen3"
addons:
apt:
packages:
- g++-6
- libgmp-dev
- libmpfr-dev
- libfftw3-dev
- libeigen3-dev
sources:
- ubuntu-toolchain-r-test

Expand Down Expand Up @@ -400,14 +410,16 @@ matrix:
- ubuntu-toolchain-r-test

- os: linux
env: TOOLSET=gcc COMPILER=g++-5 CXXSTD=c++14 TEST_SUITE=quadrature
dist: bionic
env: TOOLSET=gcc COMPILER=g++-5 CXXSTD=c++14 TEST_SUITE="quadrature include=/usr/include/eigen3"
addons:
apt:
packages:
- g++-5
- libgmp-dev
- libmpfr-dev
- libfftw3-dev
- libeigen3-dev
sources:
- ubuntu-toolchain-r-test

Expand Down Expand Up @@ -470,7 +482,7 @@ matrix:
- ubuntu-toolchain-r-test

- os: linux
dist: trusty
dist: bionic
compiler: g++-8
env: TOOLSET=gcc COMPILER=g++-8 CXXSTD=c++14 TEST_SUITE=misc
addons:
Expand All @@ -481,13 +493,14 @@ matrix:
- ubuntu-toolchain-r-test

- os: linux
dist: trusty
dist: bionic
compiler: g++-8
env: TOOLSET=gcc COMPILER=g++-8 CXXSTD=c++14 TEST_SUITE=quadrature
env: TOOLSET=gcc COMPILER=g++-8 CXXSTD=c++14 TEST_SUITE="quadrature include=/usr/include/eigen3"
addons:
apt:
packages:
- g++-8
- libeigen3-dev
sources:
- ubuntu-toolchain-r-test

Expand Down Expand Up @@ -549,7 +562,7 @@ matrix:
- ubuntu-toolchain-r-test

- os: linux
dist: trusty
dist: bionic
compiler: g++-8
env: TOOLSET=gcc COMPILER=g++-8 CXXSTD=gnu++03 TEST_SUITE=misc
addons:
Expand All @@ -560,13 +573,14 @@ matrix:
- ubuntu-toolchain-r-test

- os: linux
dist: trusty
dist: bionic
compiler: g++-8
env: TOOLSET=gcc COMPILER=g++-8 CXXSTD=gnu++03 TEST_SUITE=quadrature
env: TOOLSET=gcc COMPILER=g++-8 CXXSTD=gnu++03 TEST_SUITE="quadrature include=/usr/include/eigen3"
addons:
apt:
packages:
- g++-8
- libeigen3-dev
sources:
- ubuntu-toolchain-r-test

Expand Down Expand Up @@ -617,7 +631,7 @@ matrix:
- ubuntu-toolchain-r-test

- os: linux
dist: trusty
dist: bionic
compiler: g++-8
env: TOOLSET=gcc COMPILER=g++-8 CXXSTD=gnu++17 TEST_SUITE=distribution_tests
addons:
Expand All @@ -628,13 +642,14 @@ matrix:
- ubuntu-toolchain-r-test

- os: linux
dist: trusty
dist: bionic
compiler: g++-8
env: TOOLSET=gcc COMPILER=g++-8 CXXSTD=gnu++17 TEST_SUITE=quadrature
env: TOOLSET=gcc COMPILER=g++-8 CXXSTD=gnu++17 TEST_SUITE="quadrature include=/usr/include/eigen3"
addons:
apt:
packages:
- g++-8
- libeigen3-dev
sources:
- ubuntu-toolchain-r-test

Expand Down Expand Up @@ -707,12 +722,14 @@ matrix:
- llvm-toolchain-xenial-6.0

- os: linux
dist: bionic
compiler: clang++-6.0
env: TOOLSET=clang COMPILER=clang++-6.0 CXXSTD=c++11 TEST_SUITE=quadrature
env: TOOLSET=clang COMPILER=clang++-6.0 CXXSTD=c++11 TEST_SUITE="quadrature include=/usr/include/eigen3"
addons:
apt:
packages:
- clang-6.0
- libeigen3-dev
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-6.0
Expand Down Expand Up @@ -754,8 +771,12 @@ matrix:
osx_image: xcode11

- os: osx
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14 TEST_SUITE=quadrature
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14 TEST_SUITE="quadrature include=/usr/local/include/eigen3"
osx_image: xcode11
addons:
homebrew:
packages:
eigen

- os: osx
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14 TEST_SUITE=float128_tests
Expand Down
126 changes: 63 additions & 63 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,97 +16,95 @@ platform:

environment:
matrix:
- ARGS: --toolset=msvc-9.0 address-model=32
TEST_SUITE: special_fun distribution_tests
- ARGS: --toolset=msvc-10.0 address-model=32
TEST_SUITE: special_fun distribution_tests
- ARGS: --toolset=msvc-11.0 address-model=32
TEST_SUITE: special_fun distribution_tests
- ARGS: --toolset=msvc-12.0 address-model=32
TEST_SUITE: special_fun distribution_tests
- ARGS: --toolset=msvc-14.0 address-model=32
TEST_SUITE: special_fun distribution_tests
- ARGS: --toolset=msvc-9.0 address-model=32
# - ARGS: --toolset=msvc-9.0 address-model=32
# TEST_SUITE: special_fun distribution_tests
# - ARGS: --toolset=msvc-10.0 address-model=32
# TEST_SUITE: special_fun distribution_tests
# - ARGS: --toolset=msvc-11.0 address-model=32
# TEST_SUITE: special_fun distribution_tests
# - ARGS: --toolset=msvc-12.0 address-model=32
# TEST_SUITE: special_fun distribution_tests
# - ARGS: --toolset=msvc-14.0 address-model=32
# TEST_SUITE: special_fun distribution_tests
- ARGS: --include=/c/tools/vcpkg/installed/eigen3_x86-windows --toolset=msvc-9.0 address-model=32
TEST_SUITE: misc quadrature ../example//examples
- ARGS: --toolset=msvc-10.0 address-model=32
TEST_SUITE: misc quadrature ../example//examples
- ARGS: --toolset=msvc-11.0 address-model=32
- ARGS: --toolset=msvc-11.0 address-model=32 include=/c/tools/vcpkg/installed/eigen3_x86-windows
TEST_SUITE: misc quadrature ../example//examples
- ARGS: --toolset=msvc-12.0 address-model=32
- ARGS: --toolset=msvc-12.0 address-model=32 --include=/c/tools/vcpkg/installed/eigen3_x86-windows
TEST_SUITE: misc quadrature ../example//examples
- ARGS: --toolset=msvc-14.0 address-model=32
- ARGS: --toolset=msvc-14.0 address-model=32 --include=/c/tools/vcpkg/installed/eigen3_x86-windows
TEST_SUITE: misc quadrature ../example//examples
- ARGS: --toolset=msvc-12.0 address-model=64
TEST_SUITE: special_fun distribution_tests
- ARGS: --toolset=msvc-12.0 address-model=64
# - ARGS: --toolset=msvc-12.0 address-model=64
# TEST_SUITE: special_fun distribution_tests
- ARGS: --toolset=msvc-12.0 address-model=64 --include=/c/tools/vcpkg/installed/eigen3_x86-windows
TEST_SUITE: misc quadrature ../example//examples
- ARGS: --toolset=msvc-14.0 address-model=64
TEST_SUITE: special_fun
- ARGS: --toolset=msvc-14.0 address-model=64
TEST_SUITE: distribution_tests
- ARGS: --toolset=msvc-14.0 address-model=64
# - ARGS: --toolset=msvc-14.0 address-model=64
# TEST_SUITE: special_fun
# - ARGS: --toolset=msvc-14.0 address-model=64
# TEST_SUITE: distribution_tests
- ARGS: --toolset=msvc-14.0 address-model=64 --include=/c/tools/vcpkg/installed/eigen3_x86-windows
TEST_SUITE: misc quadrature ../example//examples

- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
ARGS: --toolset=msvc-14.1 address-model=64 cxxstd=17
TEST_SUITE: special_fun distribution_tests
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# ARGS: --toolset=msvc-14.1 address-model=64 cxxstd=17
# TEST_SUITE: special_fun distribution_tests

- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
ARGS: --toolset=msvc-14.1 address-model=64 cxxstd=17
ARGS: --toolset=msvc-14.1 address-model=64 cxxstd=17 --include=/c/tools/vcpkg/installed/eigen3_x86-windows
TEST_SUITE: misc quadrature ../example//examples

- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
ARGS: --toolset=msvc-14.1 address-model=32
TEST_SUITE: special_fun
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# ARGS: --toolset=msvc-14.1 address-model=32
# TEST_SUITE: special_fun

- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
ARGS: --toolset=msvc-14.1 address-model=32
TEST_SUITE: distribution_tests
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# ARGS: --toolset=msvc-14.1 address-model=32
# TEST_SUITE: distribution_tests

- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
ARGS: --toolset=msvc-14.1 address-model=32
ARGS: --toolset=msvc-14.1 address-model=32 --include=/c/tools/vcpkg/installed/eigen3_x86-windows
TEST_SUITE: misc quadrature ../example//examples

- ARGS: --toolset=gcc address-model=64
TEST_SUITE: float128_tests
PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
# - ARGS: --toolset=gcc address-model=64
# TEST_SUITE: float128_tests
# PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%

- ARGS: --toolset=gcc address-model=64 cxxflags=-std=gnu++1z
TEST_SUITE: float128_tests
PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
# - ARGS: --toolset=gcc address-model=64 cxxflags=-std=gnu++1z
# TEST_SUITE: float128_tests
# PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%

- ARGS: --toolset=gcc address-model=64
TEST_SUITE: special_fun
PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
# - ARGS: --toolset=gcc address-model=64
# TEST_SUITE: special_fun
# PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%

- ARGS: --toolset=gcc address-model=64 cxxflags=-std=gnu++1z
TEST_SUITE: special_fun
PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
# - ARGS: --toolset=gcc address-model=64 cxxflags=-std=gnu++1z
# TEST_SUITE: special_fun
# PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%

- ARGS: --toolset=gcc address-model=64
TEST_SUITE: distribution_tests
PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
# - ARGS: --toolset=gcc address-model=64
# TEST_SUITE: distribution_tests
# PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%

- ARGS: --toolset=gcc address-model=64 cxxflags=-std=gnu++1z
TEST_SUITE: distribution_tests
PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
# - ARGS: --toolset=gcc address-model=64 cxxflags=-std=gnu++1z
# TEST_SUITE: distribution_tests
# PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%

- ARGS: --toolset=gcc address-model=64
TEST_SUITE: misc
PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
# - ARGS: --toolset=gcc address-model=64
# TEST_SUITE: misc
# PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%

- ARGS: --toolset=gcc address-model=64 cxxflags=-std=gnu++1z
- ARGS: --toolset=gcc address-model=64 cxxflags=-std=gnu++1z --include=/c/tools/vcpkg/installed/eigen3_x86-windows
TEST_SUITE: quadrature
PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%

- ARGS: --toolset=gcc address-model=64
TEST_SUITE: ../example//examples
PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%

- ARGS: --toolset=gcc address-model=64 cxxflags=-std=gnu++1z
TEST_SUITE: ../example//examples
PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%

# - ARGS: --toolset=gcc address-model=64
# TEST_SUITE: ../example//examples
# PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
# - ARGS: --toolset=gcc address-model=64 cxxflags=-std=gnu++1z
# TEST_SUITE: ../example//examples
# PATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%

install:
- cd ..
Expand All @@ -122,6 +120,8 @@ install:
- xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\math
- git submodule update --init tools/boostdep
- python tools/boostdep/depinst/depinst.py math
- vcpkg install eigen3
- vcpkg integrate install
- bootstrap
- b2 headers

Expand Down
Loading