TooBiased / growt

This is a header only library offering a variety of dynamically growing concurrent hash tables. That all work by dynamically migrating the current table once it gets too full.
Other
106 stars 13 forks source link

Not compiling under clang 12 #6

Closed DoktorBotti closed 3 years ago

DoktorBotti commented 3 years ago

Unfortunately, the project does not compile due to some constexpr violations for the _mapper type in base_linear.hpp as seen below:

/home/user/build/project/libs/growt/./data-structures/base_linear.hpp:1160:19: error: constexpr if condition is not a constant expression
    if constexpr (_mapper.cyclic_mapping)
                  ^~~~~~~~~~~~~~~~~~~~~~

I got this behavior for both clang 12 and 10.

TooBiased commented 3 years ago

I just committed a fix. Please notify me, if you are still encountering any errors.

It looks like there are a lot of compiler warnings, when using clang, maybe I will fix these at some point, but I would not expect this before late summer.