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

H5CPP doesn't comply with C++11 #9

Closed
steven-varga opened this issue Oct 15, 2018 · 4 comments
Closed

H5CPP doesn't comply with C++11 #9

steven-varga opened this issue Oct 15, 2018 · 4 comments

Comments

@steven-varga
Copy link
Owner

error:
There are if constrexpr ( condition) { } in code base that prevent the code to parse as c++11

workaround: --std=c++17 until conditionally removing the offending constructs

@barcode
Copy link
Contributor

barcode commented Jul 16, 2019

As someone who uses this library and extends it for my own projects (e.g. generating the glue code from h5cpp-compiler with a macro), I would question the reasoning behind making this library c++11 compliant.

Using c++17 reduces the amount of code necessary (e.g. with if constexpr). This improves readability and thus code quality (less code to make mistakes) and maintainability (easier to spot mistakes).
Furthermore this library already depends on c++17 and so do all downstream projects (Upgrading from c++11 to c++17 would be a different issue).

Altogether i don't think it makes a lot of sense to use a standard which is eight years old and would vote for declaring this project as c++17 (at least my fork will stay c++17).

@steven-varga
Copy link
Owner Author

steven-varga commented Jul 16, 2019 via email

@barcode
Copy link
Contributor

barcode commented Jul 16, 2019

Ok, this means i will create PRs if I refactor something to c++17 while reading the source.

@steven-varga
Copy link
Owner Author

As of 2020 c++17 compilers are catching up; reopen ticket with strong justification if c+11 non-compliance is an issue.

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

No branches or pull requests

2 participants