mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 14:54:32 +02:00
Remove const&& overload of message::body
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
Version 133:
|
||||
|
||||
* Remove const&& overload of message::body
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Version 132:
|
||||
|
||||
* Tidy up project folders in CMakeLists.txt
|
||||
|
@@ -854,17 +854,6 @@ struct message
|
||||
return this->member();
|
||||
}
|
||||
|
||||
/// Returns the body
|
||||
#if BOOST_BEAST_DOXYGEN || ! defined(BOOST_MSVC)
|
||||
typename body_type::value_type const&
|
||||
#else
|
||||
detail::value_type_t<Body> const&
|
||||
#endif
|
||||
body() const& noexcept
|
||||
{
|
||||
return this->member();
|
||||
}
|
||||
|
||||
/// Returns the body
|
||||
#if BOOST_BEAST_DOXYGEN || ! defined(BOOST_MSVC)
|
||||
typename body_type::value_type&&
|
||||
@@ -878,13 +867,13 @@ struct message
|
||||
|
||||
/// Returns the body
|
||||
#if BOOST_BEAST_DOXYGEN || ! defined(BOOST_MSVC)
|
||||
typename body_type::value_type const&&
|
||||
typename body_type::value_type const&
|
||||
#else
|
||||
detail::value_type_t<Body> const&&
|
||||
detail::value_type_t<Body> const&
|
||||
#endif
|
||||
body() const&& noexcept
|
||||
body() const& noexcept
|
||||
{
|
||||
return std::move(this->member());
|
||||
return this->member();
|
||||
}
|
||||
|
||||
private:
|
||||
|
@@ -283,7 +283,7 @@ public:
|
||||
}
|
||||
{
|
||||
auto f = [](empty_body::value_type const&){};
|
||||
request<empty_body> const m;
|
||||
request<empty_body> const m{};
|
||||
f(m.body());
|
||||
f(std::move(m.body()));
|
||||
}
|
||||
@@ -295,8 +295,7 @@ public:
|
||||
}
|
||||
{
|
||||
auto f = [](empty_body::value_type const&&){};
|
||||
request<empty_body> const m;
|
||||
f(std::move(m).body());
|
||||
request<empty_body> const m{};
|
||||
f(std::move(m.body()));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user