Skip to content

fixed compatibility issue g++ compiler fastqueue.hh - #13

Open
mproeling wants to merge 1 commit into
premgopalan:masterfrom
mproeling:master
Open

fixed compatibility issue g++ compiler fastqueue.hh#13
mproeling wants to merge 1 commit into
premgopalan:masterfrom
mproeling:master

Conversation

@mproeling

Copy link
Copy Markdown

Dear Prem,

Thanks for making SVINET publicly available, very useful!

Upon building the package with the most recent g++ compiler I got the following error:
fastqueue.hh:49:23: error: 'constexpr' needed for in-class initialization of static data member 'cont double FastQueue::THRESH' of non-integral type [-fpermissive]
49 | static const double THRESH = 0.8;

Probably because I am using the most recent (today) g++ compiler and that changes the const function:
https://en.cppreference.com/w/cpp/language/constexpr

Hence this change so that g++ can build it :).
Many thanks, warm regards,
Mark Patrick Roeling

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.

1 participant