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

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

deanberris merged 1 commit intocpp-netlib:0.11-develfromdaedric:remove_cv_qualifier
Dec 12, 2013

Conversation

@daedric
Copy link

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 actual
type tested is "const ValueType" instead of "ValueType".

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".
@deanberris
Copy link
Member

Cool. Thanks@daedric -- LGTM!

deanberris added a commit that referenced this pull requestDec 12, 2013
cv-qualifier should be removed before checking the Header concept
@deanberrisdeanberris merged commit8c15fa8 intocpp-netlib:0.11-develDec 12, 2013
leecoder pushed a commit to leecoder/cpp-netlib that referenced this pull requestApr 14, 2015
cv-qualifier should be removed before checking the Header concept
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@daedric@deanberris

[8]ページ先頭

©2009-2025 Movatter.jp