Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution to issue #16 (illegal friend declaration of mkLit) #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fniksic
Copy link

@fniksic fniksic commented Apr 28, 2014

This patch resolves issue #16.

Basically, the friend declaration of mkLit is not needed, as mkLit can already access field x.

The specification of default value for the sign is moved to the definition of mkLit.

@sstewart2012
Copy link

This fix does not appear to have been merged into niklasso:master. I'm using Mac OS X 10.11.1, Apple LLVM version 7.0.0 (clang-700.1.76). [The fix appears to work, which I implemented manually based on this issue.]

rusydi added a commit to rusydi/minisat that referenced this pull request Mar 31, 2017
broesdecat pushed a commit to broesdecat/Minisatid that referenced this pull request Apr 18, 2017
According to ISO C++11 standard: 
"If a friend declaration specifies a default argument expression, that declaration shall be a definition and shall be the only declaration of the function or function template in the translation unit.”

Solved in the same way as the minisat project niklasso/minisat#17.
maelvls added a commit to maelvls/qute that referenced this pull request Nov 12, 2017
According to ISO C++11 standard:
"If a friend declaration specifies a default argument expression, that
declaration shall be a definition and shall be the only declaration of the
function or function template in the translation unit.”

Solved in the same way as the minisat project niklasso/minisat#17:
niklasso/minisat#17
maelvls added a commit to maelvls/qute that referenced this pull request Nov 12, 2017
According to ISO C++11 standard:
"If a friend declaration specifies a default argument expression, that
declaration shall be a definition and shall be the only declaration of the
function or function template in the translation unit.”

Solved in the same way as the minisat project niklasso/minisat#17:
niklasso/minisat#17
maelvls added a commit to maelvls/qute that referenced this pull request Nov 12, 2017
According to ISO C++11 standard:
"If a friend declaration specifies a default argument expression, that
declaration shall be a definition and shall be the only declaration of the
function or function template in the translation unit.”

Solved in the same way as the minisat project niklasso/minisat#17:
niklasso/minisat#17
@Gu1nness
Copy link

Gu1nness commented Sep 9, 2019

This would be excellent to have this PR merged, for now this project does not compile anymore without this PR.
Could you please merge it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants