mirror of
https://github.com/boostorg/callable_traits.git
synced 2026-02-11 23:52:21 +00:00
trying to fix MSVC build
This commit is contained in:
@@ -94,42 +94,42 @@ int main() {
|
||||
auto expr = ct::bind_expr(&ordered_letters, _1, _2, _3, _4, _5, _6, _7);
|
||||
using args = ct::args<decltype(expr)>;
|
||||
using expected_args = std::tuple<A, B, C, D, E, F, G>;
|
||||
CT_ASSERT(std::is_same<args, expected_args>{});
|
||||
CT_ASSERT(std::is_same<args, expected_args>::value);
|
||||
auto test = std::bind(&ordered_letters, _1, _2, _3, _4, _5, _6, _7);
|
||||
assert(apply(test, expected_args{}) == "ABCDEFG");
|
||||
} {
|
||||
auto expr = ct::bind_expr(&ordered_letters, a, b, c, _1, _2, _3, _4);
|
||||
using args = ct::args<decltype(expr)>;
|
||||
using expected_args = std::tuple<D, E, F, G>;
|
||||
CT_ASSERT(std::is_same<args, expected_args>{});
|
||||
CT_ASSERT(std::is_same<args, expected_args>::value);
|
||||
auto test = std::bind(&ordered_letters, a, b, c, _1, _2, _3, _4);
|
||||
assert(apply(test, expected_args{}) == "ABCDEFG");
|
||||
} {
|
||||
auto expr = ct::bind_expr(&ordered_letters, _7, _6, _5, _4, _3, _2, _1);
|
||||
using args = ct::args<decltype(expr)>;
|
||||
using expected_args = std::tuple<G, F, E, D, C, B, A>;
|
||||
CT_ASSERT(std::is_same<args, expected_args>{});
|
||||
CT_ASSERT(std::is_same<args, expected_args>::value);
|
||||
auto test = std::bind(&ordered_letters, _7, _6, _5, _4, _3, _2, _1);
|
||||
assert(apply(test, expected_args{}) == "ABCDEFG");
|
||||
} {
|
||||
auto expr = ct::bind_expr(&ordered_letters, a, b, c, _4, _3, _2, _1);
|
||||
using args = ct::args<decltype(expr)>;
|
||||
using expected_args = std::tuple<G, F, E, D>;
|
||||
CT_ASSERT(std::is_same<args, expected_args>{});
|
||||
CT_ASSERT(std::is_same<args, expected_args>::value);
|
||||
auto test = std::bind(&ordered_letters, a, b, c, _4, _3, _2, _1);
|
||||
assert(apply(test, expected_args{}) == "ABCDEFG");
|
||||
} {
|
||||
auto expr = ct::bind_expr(&ordered_letters, _4, _3, _2, _1, e, f, g);
|
||||
using args = ct::args<decltype(expr)>;
|
||||
using expected_args = std::tuple<D, C, B, A>;
|
||||
CT_ASSERT(std::is_same<args, expected_args>{});
|
||||
CT_ASSERT(std::is_same<args, expected_args>::value);
|
||||
auto test = std::bind(&ordered_letters, _4, _3, _2, _1, e, f, g);
|
||||
assert(apply(test, expected_args{}) == "ABCDEFG");
|
||||
} {
|
||||
auto expr = ct::bind_expr(&letters, _1, _1, _3, _3, _2, a, b);
|
||||
using args = ct::args<decltype(expr)>;
|
||||
using expected_args = std::tuple<const Letter&, const Letter&, const Letter&>;
|
||||
CT_ASSERT(std::is_same<args, expected_args>{});
|
||||
CT_ASSERT(std::is_same<args, expected_args>::value);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user