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

llvm: add static_cast to MDMap return #310

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

llvm: add static_cast to MDMap return #310

wants to merge 1 commit into from

Conversation

arafel
Copy link

@arafel arafel commented Nov 9, 2020

Fixes a build error on later compilers.

Copy link

@lucky-rydar lucky-rydar left a comment

Choose a reason for hiding this comment

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

You can just overload default bool operator. Am I right?

@arafel
Copy link
Author

arafel commented Nov 9, 2020

To be honest - I don't speak much C++. If doing what you said is more idiomatic, that's fine so long as it builds. :-)

The problem came when building with GNU C++ 8.3 (Debian 'buster').

(That's assuming someone's going to merge the pull request; the repo seems fairly dead at this point, sadly.)

Copy link

@lucky-rydar lucky-rydar left a comment

Choose a reason for hiding this comment

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

As the problem connected with compiler. I think it will help

@xboxslim
Copy link

xboxslim commented Mar 7, 2021

I thank you all, my compilation problem was solved today, thanks to this change.

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