Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Does not compile on linux (fedora 34) #125

Closed
jpmorr opened this issue May 14, 2021 · 1 comment
Closed

Does not compile on linux (fedora 34) #125

jpmorr opened this issue May 14, 2021 · 1 comment

Comments

@jpmorr
Copy link

jpmorr commented May 14, 2021

Does not compile on linux, I assume because the necessary header files are not included.

src/robin_hood.h:2122:60: error: ‘numeric_limits’ is not a member of ‘std’
 2122 |                 if (ROBIN_HOOD_LIKELY(maxElements <= (std::numeric_limits<size_t>::max)() / 100)) {

I've added :

#include <limits>

which resolves the above error.

@martinus
Copy link
Owner

Thanks! I've updated the code

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

No branches or pull requests

2 participants