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

cv-qualifier should be removed before checking the Header concept#347

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
deanberris merged 1 commit intocpp-netlib:0.11-develfromdaedric:remove_cv_qualifier
Dec 12, 2013
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
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".
  • Loading branch information
@daedric
daedric committedDec 12, 2013
commit4eac17e8bde7999b4712e4938804734e64e1b94e
2 changes: 1 addition & 1 deletionboost/network/protocol/http/algorithms/linearize.hpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -35,7 +35,7 @@ namespace boost { namespace network { namespace http {

template <class ValueType>
BOOST_CONCEPT_REQUIRES(
((Header<ValueType>)),
((Header<typename boost::remove_cv<ValueType>::type>)),
(string_type)
) operator()(ValueType & header) {
typedef typename ostringstream<Tag>::type output_stream;
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp