mirror of
https://github.com/Naios/continuable.git
synced 2025-12-07 17:26:47 +08:00
Seems like move only values inside initializer lists aren't valid sometimes
This commit is contained in:
parent
1ce251483c
commit
7a00a5f1c2
@ -78,8 +78,12 @@ void test_all_seq_aggregate(Supplier&& supply, AggregateConnector&& ag) {
|
||||
using type_t = std::decay_t<decltype(
|
||||
std::declval<Supplier>()(std::declval<int>(), std::declval<int>()))>;
|
||||
|
||||
auto chain = ag(std::make_tuple(
|
||||
std::vector<type_t>{supply(1, 2), supply(3, 4), supply(5, 6)}));
|
||||
std::vector<type_t> v;
|
||||
v.push_back(supply(1, 2));
|
||||
v.push_back(supply(3, 4));
|
||||
v.push_back(supply(5, 6));
|
||||
|
||||
auto chain = ag(std::make_tuple(std::move(v)));
|
||||
EXPECT_ASYNC_RESULT(std::move(chain),
|
||||
std::make_tuple(std::vector<std::tuple<int, int>>{
|
||||
{1, 2}, {3, 4}, {5, 6}}));
|
||||
|
||||
@ -71,8 +71,11 @@ TYPED_TEST(single_dimension_tests, is_logical_any_connectable) {
|
||||
using type_t = std::decay_t<decltype(std::declval<TestFixture>().supply(
|
||||
std::declval<int>(), std::declval<int>()))>;
|
||||
|
||||
std::vector<type_t> v{this->supply(1, 2), this->supply(3, 4),
|
||||
this->supply(5, 6)};
|
||||
std::vector<type_t> v;
|
||||
v.push_back(this->supply(1, 2));
|
||||
v.push_back(this->supply(3, 4));
|
||||
v.push_back(this->supply(5, 6));
|
||||
|
||||
auto chain = cti::when_any(std::make_tuple(std::move(v)));
|
||||
EXPECT_ASYNC_RESULT(std::move(chain), 1, 2);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user