Skip to content

STL hash to avoid int traps - #9

Open
efernandez wants to merge 1 commit into
ahornung:hydro-develfrom
efernandez:hash
Open

STL hash to avoid int traps#9
efernandez wants to merge 1 commit into
ahornung:hydro-develfrom
efernandez:hash

Conversation

@efernandez

Copy link
Copy Markdown
Contributor

With some flags, the program fails because of the integer operations.
Furthermore, it looks reasonable to use the STL hash function, unless there's some reason to use the other.

@efernandez

Copy link
Copy Markdown
Contributor Author

Pull request against hydro-devel branch.
Closed #6

Sorry for the noise

@ahornung

Copy link
Copy Markdown
Owner

I think std::hash is also C++11 / tr1 only. Maybe there is a way to disable -ftrapv instead for the hashing code block?

@efernandez

Copy link
Copy Markdown
Contributor Author

Yes, it's C++11.
I'll have to check how to disable -ftrapv in my environment (I have to check where was the problem exactly).
I don't know how we can do it in a general way (if something sets 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.

2 participants