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

Fix build with clang on OS X#169

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:masterfromimaginaryboy:master
Nov 19, 2012
Merged

Fix build with clang on OS X#169

deanberris merged 1 commit intocpp-netlib:masterfromimaginaryboy:master
Nov 19, 2012

Conversation

@imaginaryboy
Copy link

The NETWORK_MESSAGE macro causes an attempt to use the non-member operator<< with an rvalue being passed as a non-const lvalue reference. Clang correctly identifies this as an error. MSVC apparently accepts this if non-standard extensions are enabled (which is the default?).

My change simply moves the operator<< to be a member function of log_record which seemed to be the least problematic way to resolve the error.

Also, in case it's relevant:
clang++ --version
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix

…andard rvalue binding to a non-const lvalue reference.
deanberris added a commit that referenced this pull requestNov 19, 2012
@deanberrisdeanberris merged commitb2be660 intocpp-netlib:masterNov 19, 2012
@deanberris
Copy link
Member

Thanks Martin!

@Klaim
Copy link

Ok I didn't see the issue, thanks for the fix! Good to know!

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.

3 participants

@imaginaryboy@deanberris@Klaim

[8]ページ先頭

©2009-2025 Movatter.jp