mirror of
https://github.com/boostorg/function.git
synced 2026-01-29 19:42:09 +00:00
Compare commits
3 Commits
boost-1.80
...
feature/is
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
53c084084d | ||
|
|
c225007399 | ||
|
|
4633220a9d |
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -126,7 +126,7 @@ jobs:
|
|||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
if: matrix.install
|
if: matrix.install
|
||||||
@@ -194,7 +194,7 @@ jobs:
|
|||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Boost
|
- name: Setup Boost
|
||||||
shell: cmd
|
shell: cmd
|
||||||
@@ -236,7 +236,7 @@ jobs:
|
|||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
if: matrix.install
|
if: matrix.install
|
||||||
@@ -282,7 +282,7 @@ jobs:
|
|||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
if: matrix.install
|
if: matrix.install
|
||||||
@@ -338,7 +338,7 @@ jobs:
|
|||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
if: matrix.install
|
if: matrix.install
|
||||||
|
|||||||
@@ -33,10 +33,8 @@ boost_add_subdir(typeof)
|
|||||||
|
|
||||||
boost_add_subdir(static_assert)
|
boost_add_subdir(static_assert)
|
||||||
boost_add_subdir(container_hash)
|
boost_add_subdir(container_hash)
|
||||||
boost_add_subdir(smart_ptr)
|
boost_add_subdir(describe)
|
||||||
boost_add_subdir(detail)
|
boost_add_subdir(mp11)
|
||||||
boost_add_subdir(move)
|
|
||||||
boost_add_subdir(predef)
|
|
||||||
|
|
||||||
# --target check
|
# --target check
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
#include <boost/function.hpp>
|
#include <boost/function.hpp>
|
||||||
#include <boost/core/is_same.hpp>
|
|
||||||
#include <boost/core/lightweight_test_trait.hpp>
|
#include <boost/core/lightweight_test_trait.hpp>
|
||||||
|
|
||||||
struct X
|
struct X
|
||||||
@@ -27,14 +26,14 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef boost::function<X(Y)> F1;
|
typedef boost::function<X(Y)> F1;
|
||||||
|
|
||||||
BOOST_TEST_TRAIT_TRUE(( boost::core::is_same<F1::result_type, X> ));
|
BOOST_TEST_TRAIT_SAME(F1::result_type, X);
|
||||||
BOOST_TEST_TRAIT_TRUE(( boost::core::is_same<F1::argument_type, Y> ));
|
BOOST_TEST_TRAIT_SAME(F1::argument_type, Y);
|
||||||
|
|
||||||
typedef boost::function<X(Y, Z)> F2;
|
typedef boost::function<X(Y, Z)> F2;
|
||||||
|
|
||||||
BOOST_TEST_TRAIT_TRUE(( boost::core::is_same<F2::result_type, X> ));
|
BOOST_TEST_TRAIT_SAME(F2::result_type, X);
|
||||||
BOOST_TEST_TRAIT_TRUE(( boost::core::is_same<F2::first_argument_type, Y> ));
|
BOOST_TEST_TRAIT_SAME(F2::first_argument_type, Y);
|
||||||
BOOST_TEST_TRAIT_TRUE(( boost::core::is_same<F2::second_argument_type, Z> ));
|
BOOST_TEST_TRAIT_SAME(F2::second_argument_type, Z);
|
||||||
|
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user