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 usage with C++17 #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix usage with C++17 #8

wants to merge 2 commits into from

Conversation

granthenke
Copy link

When using with C++17 I got the following error:
ev++.h:355:46: error: ISO C++1z does not allow dynamic exception specifications
dynamic_loop (unsigned int flags = AUTO) throw (bad_loop)

This patch fixes the error by replacing throw (bad_loop)
with noexcept(false).

granthenke and others added 2 commits November 23, 2020 17:06
When using with C++17 I got the following error:
ev++.h:355:46: error: ISO C++1z does not allow dynamic exception specifications
      dynamic_loop (unsigned int flags = AUTO) throw (bad_loop)

This patch fixes the error by replacing `throw (bad_loop)`
with `noexcept(false)`.
asfgit pushed a commit to apache/kudu that referenced this pull request Nov 30, 2020
This patch adjust the build to start supporting and requiring C++17
(therefore GCC 7+). It adjusts the documentation and supported
OS matrix to match the new requirements as well.

I needed to replace std::random_shuffle with std::shuffle.
In C++14 `std::random_shuffle` is deprectated and in C++17 it is
removed all together. This patch replaces `std::random_shuffle` with
`std::shuffle` passing in a generator.

Additionally I needed to patch libev due to a small C++17 incompatibility:
enki/libev#8

Change-Id: I15312473bda8c743eac228cd23c337fae5acf99d
Reviewed-on: http://gerrit.cloudera.org:8080/16776
Reviewed-by: Attila Bukor <abukor@apache.org>
Tested-by: Grant Henke <granthenke@apache.org>
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