summaryrefslogtreecommitdiff
path: root/boost/beast/http/message.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/beast/http/message.hpp')
-rw-r--r--boost/beast/http/message.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/boost/beast/http/message.hpp b/boost/beast/http/message.hpp
index 5cf5d94dc9..0455042786 100644
--- a/boost/beast/http/message.hpp
+++ b/boost/beast/http/message.hpp
@@ -862,7 +862,8 @@ struct message
#endif
body()& noexcept
{
- return this->member();
+ return this->beast::detail::empty_base_optimization<
+ typename Body::value_type>::member();
}
/// Returns the body
@@ -873,7 +874,9 @@ struct message
#endif
body()&& noexcept
{
- return std::move(this->member());
+ return std::move(
+ this->beast::detail::empty_base_optimization<
+ typename Body::value_type>::member());
}
/// Returns the body
@@ -884,7 +887,8 @@ struct message
#endif
body() const& noexcept
{
- return this->member();
+ return this->beast::detail::empty_base_optimization<
+ typename Body::value_type>::member();
}
private: