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

Commitcc6d376

Browse files
author
Яничкин Александр
committed
Fix missing const qualifier in return value of functions name(const pair<T1,T2>&) and value(const pair<T1,T2>&)
1 parent463a0ea commitcc6d376

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎include/network/protocol/http/message/header/name.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace network {
1414
namespacehttp {
1515

1616
template<classT1,classT2>
17-
T1 &
17+
inline T1const &
1818
name(std::pair<T1,T2>const & p) {
1919
return p.first;
2020
}

‎include/network/protocol/http/message/header/value.hpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct request_header;
1616
structresponse_header;
1717

1818
template<classT1,classT2>
19-
T1 &value(std::pair<T1,T2>const & p) {
19+
inline T1const &value(std::pair<T1,T2>const & p) {
2020
return p.second;
2121
}
2222

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp