mirror of
https://github.com/boostorg/bind.git
synced 2026-04-18 23:48:42 +02:00
Compare commits
15 Commits
boost-1.69
...
boost-1.72
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6ac20c4fd | ||
|
|
4c263bff9e | ||
|
|
d051c452ea | ||
|
|
b0f3b3fbab | ||
|
|
be7a2d9212 | ||
|
|
c8973a7027 | ||
|
|
f52ef4b659 | ||
|
|
42fe00190e | ||
|
|
9ded210338 | ||
|
|
bce6f5ff79 | ||
|
|
bd22f0e4de | ||
|
|
98fbd87b9e | ||
|
|
791c3a0b1f | ||
|
|
9d4ca0ede4 | ||
|
|
7a4b89856d |
112
.travis.yml
112
.travis.yml
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2016, 2017 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,7 +6,7 @@ language: cpp
|
|||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
python: "2.7"
|
dist: trusty
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
@@ -28,6 +28,26 @@ matrix:
|
|||||||
compiler: g++
|
compiler: g++
|
||||||
env: TOOLSET=gcc COMPILER=g++ CXXSTD=03,11
|
env: TOOLSET=gcc COMPILER=g++ CXXSTD=03,11
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: g++-4.4
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-4.4 CXXSTD=98
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-4.4
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: g++-4.6
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-4.6 CXXSTD=03,0x
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-4.6
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: g++-4.7
|
compiler: g++-4.7
|
||||||
env: TOOLSET=gcc COMPILER=g++-4.7 CXXSTD=03,11
|
env: TOOLSET=gcc COMPILER=g++-4.7 CXXSTD=03,11
|
||||||
@@ -88,10 +108,46 @@ matrix:
|
|||||||
sources:
|
sources:
|
||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: g++-8
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-8 CXXSTD=03,11,14,17,2a
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-8
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: g++-9
|
||||||
|
env: TOOLSET=gcc COMPILER=g++-9 CXXSTD=03,11,14,17,2a
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- g++-9
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang++
|
compiler: clang++
|
||||||
env: TOOLSET=clang COMPILER=clang++ CXXSTD=03,11
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=03,11
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: /usr/bin/clang++
|
||||||
|
env: TOOLSET=clang COMPILER=/usr/bin/clang++ CXXSTD=03,11
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.3
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: /usr/bin/clang++
|
||||||
|
env: TOOLSET=clang COMPILER=/usr/bin/clang++ CXXSTD=03,11
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-3.4
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang++-3.5
|
compiler: clang++-3.5
|
||||||
env: TOOLSET=clang COMPILER=clang++-3.5 CXXSTD=03,11,14,1z
|
env: TOOLSET=clang COMPILER=clang++-3.5 CXXSTD=03,11,14,1z
|
||||||
@@ -172,17 +228,65 @@ matrix:
|
|||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
- llvm-toolchain-trusty-5.0
|
- llvm-toolchain-trusty-5.0
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: clang++-6.0
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-6.0 CXXSTD=03,11,14,17,2a
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-6.0
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-trusty-6.0
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: clang++-7
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-7 CXXSTD=03,11,14,17,2a
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-7
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-trusty-7
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: clang++-8
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-8 CXXSTD=03,11,14,17,2a
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- clang-8
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-trusty-8
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: clang++-libc++
|
||||||
|
env: TOOLSET=clang COMPILER=clang++-libc++ CXXSTD=03,11,14,1z VARIANT=release
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- libc++-dev
|
||||||
|
|
||||||
- os: osx
|
- os: osx
|
||||||
compiler: clang++
|
compiler: clang++
|
||||||
env: TOOLSET=clang COMPILER=clang++ CXXSTD=03,11,14,1z
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=03,11,14,1z
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
compiler: g++
|
||||||
|
env: CMAKE_SUBDIR_TEST=1
|
||||||
|
script:
|
||||||
|
- cd libs/bind/test/cmake_subdir_test && mkdir __build__ && cd __build__
|
||||||
|
- cmake ..
|
||||||
|
- cmake --build .
|
||||||
|
- cmake --build . --target check
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true
|
- BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true
|
||||||
- cd ..
|
- cd ..
|
||||||
- git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
|
- git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
|
||||||
- cd boost-root
|
- cd boost-root
|
||||||
- git submodule update --init tools/build
|
|
||||||
- git submodule update --init libs/config
|
|
||||||
- git submodule update --init tools/boostdep
|
- git submodule update --init tools/boostdep
|
||||||
- cp -r $TRAVIS_BUILD_DIR/* libs/bind
|
- cp -r $TRAVIS_BUILD_DIR/* libs/bind
|
||||||
- python tools/boostdep/depinst/depinst.py bind
|
- python tools/boostdep/depinst/depinst.py bind
|
||||||
|
|||||||
20
CMakeLists.txt
Normal file
20
CMakeLists.txt
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# Copyright 2018 Mike Dev
|
||||||
|
# Distributed under 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
|
||||||
|
|
||||||
|
# Partial (add_subdirectory only) and experimental CMake support
|
||||||
|
# Subject to change; please do not rely on the contents of this file yet
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
project(BoostBind LANGUAGES CXX)
|
||||||
|
|
||||||
|
add_library(boost_bind INTERFACE)
|
||||||
|
add_library(Boost::bind ALIAS boost_bind)
|
||||||
|
|
||||||
|
target_include_directories(boost_bind INTERFACE include)
|
||||||
|
|
||||||
|
target_link_libraries(boost_bind
|
||||||
|
INTERFACE
|
||||||
|
Boost::config
|
||||||
|
Boost::core
|
||||||
|
)
|
||||||
36
appveyor.yml
36
appveyor.yml
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2016, 2017 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)
|
||||||
|
|
||||||
@@ -14,13 +14,31 @@ branches:
|
|||||||
|
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
|
|
||||||
TOOLSET: msvc-9.0,msvc-10.0,msvc-11.0,msvc-12.0
|
|
||||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
TOOLSET: msvc-14.0
|
TOOLSET: msvc-9.0,msvc-10.0,msvc-11.0
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
TOOLSET: msvc-12.0,msvc-14.0
|
||||||
|
ADDRESS_MODEL: 32,64
|
||||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||||
TOOLSET: msvc-14.1
|
TOOLSET: msvc-14.1,clang-win
|
||||||
CXXSTD: 14,17
|
CXXSTD: 14,17
|
||||||
|
ADDRESS_MODEL: 32,64
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
ADDPATH: C:\cygwin\bin;
|
||||||
|
TOOLSET: gcc
|
||||||
|
CXXSTD: 03,11,14,1z
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
ADDPATH: C:\cygwin64\bin;
|
||||||
|
TOOLSET: gcc
|
||||||
|
CXXSTD: 03,11,14,1z
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
ADDPATH: C:\mingw\bin;
|
||||||
|
TOOLSET: gcc
|
||||||
|
CXXSTD: 03,11,14,1z
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
ADDPATH: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;
|
||||||
|
TOOLSET: gcc
|
||||||
|
CXXSTD: 03,11,14,1z
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- set BOOST_BRANCH=develop
|
- set BOOST_BRANCH=develop
|
||||||
@@ -28,10 +46,8 @@ install:
|
|||||||
- cd ..
|
- cd ..
|
||||||
- git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
|
- git clone -b %BOOST_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
|
||||||
- cd boost-root
|
- cd boost-root
|
||||||
- git submodule update --init tools/build
|
|
||||||
- git submodule update --init libs/config
|
|
||||||
- git submodule update --init tools/boostdep
|
- git submodule update --init tools/boostdep
|
||||||
- xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\bind
|
- xcopy /s /e /q %APPVEYOR_BUILD_FOLDER% libs\bind\
|
||||||
- python tools/boostdep/depinst/depinst.py bind
|
- python tools/boostdep/depinst/depinst.py bind
|
||||||
- cmd /c bootstrap
|
- cmd /c bootstrap
|
||||||
- b2 -d0 headers
|
- b2 -d0 headers
|
||||||
@@ -39,5 +55,7 @@ install:
|
|||||||
build: off
|
build: off
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
|
- PATH=%ADDPATH%%PATH%
|
||||||
- if not "%CXXSTD%" == "" set CXXSTD=cxxstd=%CXXSTD%
|
- if not "%CXXSTD%" == "" set CXXSTD=cxxstd=%CXXSTD%
|
||||||
- b2 -j 3 libs/bind/test toolset=%TOOLSET% %CXXSTD%
|
- if not "%ADDRESS_MODEL%" == "" set ADDRESS_MODEL=address-model=%ADDRESS_MODEL%
|
||||||
|
- b2 -j3 libs/bind/test toolset=%TOOLSET% %CXXSTD% %ADDRESS_MODEL% variant=debug,release
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||||
# http://www.boost.org/LICENSE_1_0.txt)
|
# http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
project doc/bind ;
|
|
||||||
|
|
||||||
import boostbook ;
|
import boostbook ;
|
||||||
import quickbook ;
|
import quickbook ;
|
||||||
|
|
||||||
|
|||||||
@@ -167,8 +167,8 @@ variable:
|
|||||||
[section Modeling STL function object concepts]
|
[section Modeling STL function object concepts]
|
||||||
|
|
||||||
The function objects that are produced by `bind` do not model the STL
|
The function objects that are produced by `bind` do not model the STL
|
||||||
[@http://www.sgi.com/tech/stl/UnaryFunction.html /Unary Function/] or
|
[@https://boost.org/sgi/stl/UnaryFunction.html /Unary Function/] or
|
||||||
[@http://www.sgi.com/tech/stl/BinaryFunction.html /Binary Function/] concepts,
|
[@https://boost.org/sgi/stl/BinaryFunction.html /Binary Function/] concepts,
|
||||||
even when the function objects are unary or binary operations, because the
|
even when the function objects are unary or binary operations, because the
|
||||||
function object types are missing public typedefs `result_type` and
|
function object types are missing public typedefs `result_type` and
|
||||||
`argument_type` or `first_argument_type` and `second_argument_type`. In cases
|
`argument_type` or `first_argument_type` and `second_argument_type`. In cases
|
||||||
|
|||||||
@@ -900,8 +900,8 @@
|
|||||||
</h3></div></div></div>
|
</h3></div></div></div>
|
||||||
<p>
|
<p>
|
||||||
The function objects that are produced by <code class="computeroutput"><span class="identifier">bind</span></code>
|
The function objects that are produced by <code class="computeroutput"><span class="identifier">bind</span></code>
|
||||||
do not model the STL <a href="http://www.sgi.com/tech/stl/UnaryFunction.html" target="_top"><span class="emphasis"><em>Unary
|
do not model the STL <a href="https://boost.org/sgi/stl/UnaryFunction.html" target="_top"><span class="emphasis"><em>Unary
|
||||||
Function</em></span></a> or <a href="http://www.sgi.com/tech/stl/BinaryFunction.html" target="_top"><span class="emphasis"><em>Binary
|
Function</em></span></a> or <a href="https://boost.org/sgi/stl/BinaryFunction.html" target="_top"><span class="emphasis"><em>Binary
|
||||||
Function</em></span></a> concepts, even when the function objects are
|
Function</em></span></a> concepts, even when the function objects are
|
||||||
unary or binary operations, because the function object types are missing
|
unary or binary operations, because the function object types are missing
|
||||||
public typedefs <code class="computeroutput"><span class="identifier">result_type</span></code>
|
public typedefs <code class="computeroutput"><span class="identifier">result_type</span></code>
|
||||||
|
|||||||
@@ -2136,7 +2136,7 @@ template<class F, class A1, class A2, class A3, class A4, class A5, class A6, cl
|
|||||||
#undef BOOST_BIND_ST
|
#undef BOOST_BIND_ST
|
||||||
#undef BOOST_BIND_NOEXCEPT
|
#undef BOOST_BIND_NOEXCEPT
|
||||||
|
|
||||||
#ifdef BOOST_BIND_ENABLE_STDCALL
|
#if defined(BOOST_BIND_ENABLE_STDCALL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_BIND_CC __stdcall
|
#define BOOST_BIND_CC __stdcall
|
||||||
#define BOOST_BIND_ST
|
#define BOOST_BIND_ST
|
||||||
@@ -2150,7 +2150,7 @@ template<class F, class A1, class A2, class A3, class A4, class A5, class A6, cl
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOOST_BIND_ENABLE_FASTCALL
|
#if defined(BOOST_BIND_ENABLE_FASTCALL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_BIND_CC __fastcall
|
#define BOOST_BIND_CC __fastcall
|
||||||
#define BOOST_BIND_ST
|
#define BOOST_BIND_ST
|
||||||
@@ -2197,7 +2197,7 @@ template<class F, class A1, class A2, class A3, class A4, class A5, class A6, cl
|
|||||||
#undef BOOST_BIND_MF_CC
|
#undef BOOST_BIND_MF_CC
|
||||||
#undef BOOST_BIND_MF_NOEXCEPT
|
#undef BOOST_BIND_MF_NOEXCEPT
|
||||||
|
|
||||||
#ifdef BOOST_MEM_FN_ENABLE_CDECL
|
#if defined(BOOST_MEM_FN_ENABLE_CDECL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_BIND_MF_NAME(X) X##_cdecl
|
#define BOOST_BIND_MF_NAME(X) X##_cdecl
|
||||||
#define BOOST_BIND_MF_CC __cdecl
|
#define BOOST_BIND_MF_CC __cdecl
|
||||||
@@ -2212,7 +2212,7 @@ template<class F, class A1, class A2, class A3, class A4, class A5, class A6, cl
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOOST_MEM_FN_ENABLE_STDCALL
|
#if defined(BOOST_MEM_FN_ENABLE_STDCALL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_BIND_MF_NAME(X) X##_stdcall
|
#define BOOST_BIND_MF_NAME(X) X##_stdcall
|
||||||
#define BOOST_BIND_MF_CC __stdcall
|
#define BOOST_BIND_MF_CC __stdcall
|
||||||
@@ -2227,7 +2227,7 @@ template<class F, class A1, class A2, class A3, class A4, class A5, class A6, cl
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOOST_MEM_FN_ENABLE_FASTCALL
|
#if defined(BOOST_MEM_FN_ENABLE_FASTCALL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_BIND_MF_NAME(X) X##_fastcall
|
#define BOOST_BIND_MF_NAME(X) X##_fastcall
|
||||||
#define BOOST_BIND_MF_CC __fastcall
|
#define BOOST_BIND_MF_CC __fastcall
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ template<class V> struct mf
|
|||||||
#undef BOOST_MEM_FN_CC
|
#undef BOOST_MEM_FN_CC
|
||||||
#undef BOOST_MEM_FN_NAME
|
#undef BOOST_MEM_FN_NAME
|
||||||
|
|
||||||
#ifdef BOOST_MEM_FN_ENABLE_CDECL
|
#if defined(BOOST_MEM_FN_ENABLE_CDECL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_MEM_FN_NAME(X) inner_##X##_cdecl
|
#define BOOST_MEM_FN_NAME(X) inner_##X##_cdecl
|
||||||
#define BOOST_MEM_FN_CC __cdecl
|
#define BOOST_MEM_FN_CC __cdecl
|
||||||
@@ -61,7 +61,7 @@ template<class V> struct mf
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOOST_MEM_FN_ENABLE_STDCALL
|
#if defined(BOOST_MEM_FN_ENABLE_STDCALL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_MEM_FN_NAME(X) inner_##X##_stdcall
|
#define BOOST_MEM_FN_NAME(X) inner_##X##_stdcall
|
||||||
#define BOOST_MEM_FN_CC __stdcall
|
#define BOOST_MEM_FN_CC __stdcall
|
||||||
@@ -73,7 +73,7 @@ template<class V> struct mf
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOOST_MEM_FN_ENABLE_FASTCALL
|
#if defined(BOOST_MEM_FN_ENABLE_FASTCALL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_MEM_FN_NAME(X) inner_##X##_fastcall
|
#define BOOST_MEM_FN_NAME(X) inner_##X##_fastcall
|
||||||
#define BOOST_MEM_FN_CC __fastcall
|
#define BOOST_MEM_FN_CC __fastcall
|
||||||
@@ -102,7 +102,7 @@ template<> struct mf<void>
|
|||||||
#undef BOOST_MEM_FN_CC
|
#undef BOOST_MEM_FN_CC
|
||||||
#undef BOOST_MEM_FN_NAME
|
#undef BOOST_MEM_FN_NAME
|
||||||
|
|
||||||
#ifdef BOOST_MEM_FN_ENABLE_CDECL
|
#if defined(BOOST_MEM_FN_ENABLE_CDECL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_MEM_FN_NAME(X) inner_##X##_cdecl
|
#define BOOST_MEM_FN_NAME(X) inner_##X##_cdecl
|
||||||
#define BOOST_MEM_FN_CC __cdecl
|
#define BOOST_MEM_FN_CC __cdecl
|
||||||
@@ -155,7 +155,7 @@ template<> struct mf<void>
|
|||||||
#undef BOOST_MEM_FN_NAME2
|
#undef BOOST_MEM_FN_NAME2
|
||||||
#undef BOOST_MEM_FN_CC
|
#undef BOOST_MEM_FN_CC
|
||||||
|
|
||||||
#ifdef BOOST_MEM_FN_ENABLE_CDECL
|
#if defined(BOOST_MEM_FN_ENABLE_CDECL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_MEM_FN_NAME(X) X##_cdecl
|
#define BOOST_MEM_FN_NAME(X) X##_cdecl
|
||||||
#define BOOST_MEM_FN_NAME2(X) inner_##X##_cdecl
|
#define BOOST_MEM_FN_NAME2(X) inner_##X##_cdecl
|
||||||
@@ -217,7 +217,7 @@ namespace _mfi
|
|||||||
#undef BOOST_MEM_FN_CC
|
#undef BOOST_MEM_FN_CC
|
||||||
#undef BOOST_MEM_FN_NAME
|
#undef BOOST_MEM_FN_NAME
|
||||||
|
|
||||||
#ifdef BOOST_MEM_FN_ENABLE_CDECL
|
#if defined(BOOST_MEM_FN_ENABLE_CDECL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_MEM_FN_NAME(X) X##_cdecl
|
#define BOOST_MEM_FN_NAME(X) X##_cdecl
|
||||||
#define BOOST_MEM_FN_CC __cdecl
|
#define BOOST_MEM_FN_CC __cdecl
|
||||||
@@ -229,7 +229,7 @@ namespace _mfi
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOOST_MEM_FN_ENABLE_STDCALL
|
#if defined(BOOST_MEM_FN_ENABLE_STDCALL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_MEM_FN_NAME(X) X##_stdcall
|
#define BOOST_MEM_FN_NAME(X) X##_stdcall
|
||||||
#define BOOST_MEM_FN_CC __stdcall
|
#define BOOST_MEM_FN_CC __stdcall
|
||||||
@@ -241,7 +241,7 @@ namespace _mfi
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOOST_MEM_FN_ENABLE_FASTCALL
|
#if defined(BOOST_MEM_FN_ENABLE_FASTCALL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_MEM_FN_NAME(X) X##_fastcall
|
#define BOOST_MEM_FN_NAME(X) X##_fastcall
|
||||||
#define BOOST_MEM_FN_CC __fastcall
|
#define BOOST_MEM_FN_CC __fastcall
|
||||||
@@ -270,7 +270,7 @@ namespace _mfi
|
|||||||
#undef BOOST_MEM_FN_NAME
|
#undef BOOST_MEM_FN_NAME
|
||||||
#undef BOOST_MEM_FN_CC
|
#undef BOOST_MEM_FN_CC
|
||||||
|
|
||||||
#ifdef BOOST_MEM_FN_ENABLE_CDECL
|
#if defined(BOOST_MEM_FN_ENABLE_CDECL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_MEM_FN_NAME(X) X##_cdecl
|
#define BOOST_MEM_FN_NAME(X) X##_cdecl
|
||||||
#define BOOST_MEM_FN_CC __cdecl
|
#define BOOST_MEM_FN_CC __cdecl
|
||||||
@@ -282,7 +282,7 @@ namespace _mfi
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOOST_MEM_FN_ENABLE_STDCALL
|
#if defined(BOOST_MEM_FN_ENABLE_STDCALL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_MEM_FN_NAME(X) X##_stdcall
|
#define BOOST_MEM_FN_NAME(X) X##_stdcall
|
||||||
#define BOOST_MEM_FN_CC __stdcall
|
#define BOOST_MEM_FN_CC __stdcall
|
||||||
@@ -294,7 +294,7 @@ namespace _mfi
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOOST_MEM_FN_ENABLE_FASTCALL
|
#if defined(BOOST_MEM_FN_ENABLE_FASTCALL) && !defined(_M_X64)
|
||||||
|
|
||||||
#define BOOST_MEM_FN_NAME(X) X##_fastcall
|
#define BOOST_MEM_FN_NAME(X) X##_fastcall
|
||||||
#define BOOST_MEM_FN_CC __fastcall
|
#define BOOST_MEM_FN_CC __fastcall
|
||||||
|
|||||||
20
test/cmake_subdir_test/CMakeLists.txt
Normal file
20
test/cmake_subdir_test/CMakeLists.txt
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# Copyright 2018, 2019 Peter Dimov
|
||||||
|
# Distributed under 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
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
|
project(cmake_subdir_test LANGUAGES CXX)
|
||||||
|
|
||||||
|
add_subdirectory(../.. boostorg/bind)
|
||||||
|
add_subdirectory(../../../assert boostorg/assert)
|
||||||
|
add_subdirectory(../../../config boostorg/config)
|
||||||
|
add_subdirectory(../../../core boostorg/core)
|
||||||
|
|
||||||
|
add_executable(quick ../quick.cpp)
|
||||||
|
target_link_libraries(quick Boost::bind Boost::core)
|
||||||
|
|
||||||
|
enable_testing()
|
||||||
|
add_test(quick quick)
|
||||||
|
|
||||||
|
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>)
|
||||||
Reference in New Issue
Block a user