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

error: in-class initializer for static data member of type 'const double' requires 'constexpr' specifier #57

Open
yurivict opened this issue Jul 24, 2018 · 3 comments

Comments

@yurivict
Copy link

Build fails with clang-6 on on FreeBSD:

../../../../../src/lib/chemistry/qc/mbptr12/transform_tbint.h:64:23: error: in-class initializer for static data member of type 'const double' requires 'constexpr' specifier
      [-Wstatic-float-init]
  static const double zero_integral = 1.0e-12;
                      ^               ~~~~~~~
../../../../../src/lib/chemistry/qc/mbptr12/transform_tbint.h:64:3: note: add 'constexpr'
  static const double zero_integral = 1.0e-12;
  ^
  constexpr 
@yurivict
Copy link
Author

You need to specify -std=c++98.

@evaleev
Copy link
Member

evaleev commented Aug 15, 2018

this is version 2.3.1?

@yurivict
Copy link
Author

Yes, this is version 2.3.1?

Is this the latest version?
The releases page has a recent tag release-1-0 for some reason.

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