Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite6a751f

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 parentab84c01 commite6a751f

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_tsize()const {
29-
returnstring_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_tsize()const {
47-
returnstring_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)

[8]ページ先頭

©2009-2025 Movatter.jp