forked from boostorg/beast
Add ref-qualified overloads for message::body
This commit is contained in:
@@ -273,6 +273,34 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
testBody()
|
||||
{
|
||||
{
|
||||
auto f = [](empty_body::value_type&){};
|
||||
request<empty_body> m;
|
||||
f(m.body());
|
||||
}
|
||||
{
|
||||
auto f = [](empty_body::value_type const&){};
|
||||
request<empty_body> const m;
|
||||
f(m.body());
|
||||
f(std::move(m.body()));
|
||||
}
|
||||
{
|
||||
auto f = [](empty_body::value_type&&){};
|
||||
request<empty_body> m;
|
||||
f(std::move(m).body());
|
||||
f(std::move(m.body()));
|
||||
}
|
||||
{
|
||||
auto f = [](empty_body::value_type const&&){};
|
||||
request<empty_body> const m;
|
||||
f(std::move(m).body());
|
||||
f(std::move(m.body()));
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
testSwap()
|
||||
{
|
||||
@@ -477,6 +505,7 @@ public:
|
||||
{
|
||||
testMessage();
|
||||
testMessageCtors();
|
||||
testBody();
|
||||
testSwap();
|
||||
testSpecialMembers();
|
||||
testMethod();
|
||||
|
||||
Reference in New Issue
Block a user