File: g%2B%2B6-constexpr.patch

package info (click to toggle)
mpqc 2.3.1-21
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 43,080 kB
  • sloc: cpp: 258,686; sh: 8,532; perl: 6,017; ansic: 5,499; makefile: 2,497; fortran: 1,970; lisp: 1,269; yacc: 313; lex: 177; csh: 45
file content (19 lines) | stat: -rw-r--r-- 885 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Alastair McKinstry <mckinstry@debian.org>
Description: constexpr needed in g++6 (c++11)
Last-Updated: 2016-09-13
Forwarded: no
Bug-Origin: https://bugs.debian.org/812036

Index: mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_tbint.h
===================================================================
--- mpqc-2.3.1.orig/src/lib/chemistry/qc/mbptr12/transform_tbint.h
+++ mpqc-2.3.1/src/lib/chemistry/qc/mbptr12/transform_tbint.h
@@ -61,7 +61,7 @@ class TwoBodyMOIntsTransform : virtual p
 protected:
   /** By default, integrals smaller than zero_integral are considered zero.
       This constant is only used in checking integrals, not computing them. */
-  static const double zero_integral = 1.0e-12;
+  static constexpr double zero_integral = 1.0e-12;
   /// Predefined enumerated type for the MO spaces
   typedef struct {
     enum {Space1, Space2, Space3, Space4};