Skip to content

Commit cc6d376

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 parent 463a0ea commit cc6d376

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
namespace http {
1515

1616
template <class T1, class T2>
17-
T1 &
17+
inline T1 const &
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
struct response_header;
1717

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

0 commit comments

Comments
 (0)