Skip to content

Commit e6a751f

Browse files
author
Dean Michael Berris
committed
Removing unnecessary cast for string_type in the body wrapper when getting the size of the body.
1 parent ab84c01 commit e6a751f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boost/network/message/wrappers/body.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace boost { namespace network {
2626
};
2727

2828
std::size_t size() const {
29-
return string_type(detail::wrapper_base<Tag>::_message.body()).size();
29+
return detail::wrapper_base<Tag>::_message.body().size();
3030
}
3131
};
3232

@@ -44,7 +44,7 @@ namespace boost { namespace network {
4444
}
4545

4646
std::size_t size() const {
47-
return string_type(detail::wrapper_base<Tag>::_message.body()).size();
47+
return detail::wrapper_base<Tag>::_message.body().size();
4848
}
4949
};
5050

0 commit comments

Comments
 (0)