Skip to content

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

@yurivict

Description

@yurivict

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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions