forked from boostorg/beast
Add optional yield_to arguments
This commit is contained in:
@@ -132,8 +132,7 @@ public:
|
||||
{
|
||||
testSpecialMembers();
|
||||
|
||||
yield_to(std::bind(&self::testRead,
|
||||
this, std::placeholders::_1));
|
||||
yield_to(&self::testRead, this);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
+4
-11
@@ -378,17 +378,10 @@ public:
|
||||
{
|
||||
testThrow();
|
||||
|
||||
yield_to(std::bind(&read_test::testFailures,
|
||||
this, std::placeholders::_1));
|
||||
|
||||
yield_to(std::bind(&read_test::testReadHeaders,
|
||||
this, std::placeholders::_1));
|
||||
|
||||
yield_to(std::bind(&read_test::testRead,
|
||||
this, std::placeholders::_1));
|
||||
|
||||
yield_to(std::bind(&read_test::testEof,
|
||||
this, std::placeholders::_1));
|
||||
yield_to(&read_test::testFailures, this);
|
||||
yield_to(&read_test::testReadHeaders, this);
|
||||
yield_to(&read_test::testRead, this);
|
||||
yield_to(&read_test::testEof, this);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
+3
-6
@@ -702,12 +702,9 @@ public:
|
||||
|
||||
void run() override
|
||||
{
|
||||
yield_to(std::bind(&write_test::testAsyncWriteHeaders,
|
||||
this, std::placeholders::_1));
|
||||
yield_to(std::bind(&write_test::testAsyncWrite,
|
||||
this, std::placeholders::_1));
|
||||
yield_to(std::bind(&write_test::testFailures,
|
||||
this, std::placeholders::_1));
|
||||
yield_to(&write_test::testAsyncWriteHeaders, this);
|
||||
yield_to(&write_test::testAsyncWrite, this);
|
||||
yield_to(&write_test::testFailures, this);
|
||||
testOutput();
|
||||
test_std_ostream();
|
||||
testOstream();
|
||||
|
||||
Reference in New Issue
Block a user