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

0.9 devel#47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
1 commit merged intocpp-netlib:0.9-develfromdemozon:0.9-devel
May 13, 2011
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Return const reference from get functions
The const versions of destination(), source(), body()and headers() returned either a temporary or a non constreference. Changed the to return a const references.This makes them work with boost::iterator_ranges.
  • Loading branch information
@demozon
demozon committedMay 9, 2011
commit7099700af7dea7eb4d6a4096e8d9e44b5e6c2f66
8 changes: 4 additions & 4 deletionsboost/network/message.hpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -83,7 +83,7 @@ namespace boost { namespace network {
_headers.erase(key);
}

headers_container_type & headers() const {
headers_container_typeconst& headers() const {
return _headers;
}

Expand All@@ -95,7 +95,7 @@ namespace boost { namespace network {
_body = body_;
}

string_type body() const {
string_typeconst &body() const {
return _body;
}

Expand All@@ -107,7 +107,7 @@ namespace boost { namespace network {
_source = source_;
}

string_type source() const {
string_typeconst &source() const {
return _source;
}

Expand All@@ -119,7 +119,7 @@ namespace boost { namespace network {
_destination = destination_;
}

string_type destination() const {
string_typeconst &destination() const {
return _destination;
}

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp