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

ICC fixes#738

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 2 commits intocpp-netlib:0.13-releasefromBlueBrain:0.13-release
Mar 1, 2017
Merged

Conversation

eile
Copy link

@eileeile commentedMar 1, 2017
edited by deanberris
Loading

const-qualify function-local static constant arrays.

@@ -131,7 +131,7 @@ class basic_client_facade {
} else {
if (boost::empty(content_type_headers)) {
typedef typename char_<Tag>::type char_type;
static char_type content_type[] = "x-application/octet-stream";
static char_type* content_type = "x-application/octet-stream";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I suppose a better change here would be:

static char_typeconst content_type[] ="...";

@eile
Copy link
Author

eile commentedMar 1, 2017

Updated.

@deanberris
Copy link
Member

LGTM -- thanks@eile!

@deanberrisdeanberris merged commitf17d305 intocpp-netlib:0.13-releaseMar 1, 2017
@eileeile mentioned this pull requestMar 1, 2017
@tribal-tec
Copy link

@deanberris your requested change actually does not work, at least with icc 17:

boost/network/protocol/http/client/facade.hpp(134): error: a value of type "const char [27]" cannot be used to initialize an entity of type "const char_type []"          static char_type const content_type[] = "x-application/octet-stream";

I suggest to keep the initial code change by@eile:

static char_type* const content_type = "x-application/octet-stream";

I just verified that this compiles.

@deanberris
Copy link
Member

@tribal-tec -- that's interesting, why isn't this an ICC bug?

If you send me a pull request I'd be happy to review and merge it.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@deanberrisdeanberrisdeanberris requested changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@eile@deanberris@tribal-tec

[8]ページ先頭

©2009-2025 Movatter.jp