forked fromglynos/cpp-netlib
- Notifications
You must be signed in to change notification settings - Fork425
Commit4eac17e
committed
cv-qualifier should be removed before checking the Header concept
C++11 allows this kind of construction: connection->set_status(Connection::bad_request); const auto size_to_send = std::to_string(reason.size()); auto headers = { Header{"Content-Length", size_to_send} }; auto range = boost::make_iterator_range(headers); connection->set_headers(range); connection->write(reason);But in the case of an initializer_list, elements are const, then the actualtype tested is "const ValueType" instead of "ValueType".1 parentc6464a0 commit4eac17e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments
Comments
(0)