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

Fix compilation error #17

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

Conversation

caiiiycuk
Copy link

Tried to build on latest Ubuntu, have this error:

In file included from DictionaryOptimizer.cpp:33:
IntSet.h:35:24: error: ‘constexpr’ needed for in-class initialization of static data member ‘const float femtozip::IntSet::load_factor’ of non-integral type [-fpermissive]
   35 |     static const float load_factor = .7;
      |                        ^~~~~~~~~~~

@gtoubassi
Copy link
Owner

Apologies that I don't have time right now to dig into this, but this stackoverflow should help: https://stackoverflow.com/questions/19575258/why-must-non-integral-static-data-members-initialized-in-the-class-be-constexpr

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