1414#include " Ostap/Math.h"
1515// ============================================================================
1616// / local namespace to hide all tehcnical symbols
17- #if __cplusplus == 201703L
18- #ifndef CONSTEXP
19- #define CONSTEXP constexpr
20- #endif
21- #else
22- #ifndef CONSTEXP
23- #define CONSTEXP const
24- #endif
25- #endif
17+
2618
2719namespace
2820{
@@ -69,14 +61,14 @@ namespace
6961 /* * @var s_INFINITY_LOG_POS
7062 * representation of positive INFINITY_LOG
7163 */
72- CONSTEXP double s_INFINITY_LOG_POS = std::log ( s_INFINITY ) ;
64+ const double s_INFINITY_LOG_POS = std::log ( s_INFINITY ) ;
7365 /* * @var s_INFINITY_LOG
7466 * representation of positive INFINITY_LOG
7567 */
7668 /* * @var s_INFINITY_LOG_NEG
7769 * representation of negative INFINITY_LOG
7870 */
79- CONSTEXP double s_INFINITY_LOG_NEG = std::log ( 2 * s_SMALL2 ) ;
71+ const double s_INFINITY_LOG_NEG = std::log ( 2 * s_SMALL2 ) ;
8072
8173 // ==========================================================================
8274 // Constants
@@ -86,98 +78,98 @@ namespace
8678 * @author Vanya BELYAEV Ivan.Belyaev@cern.ch
8779 * @date 2010-05-23
8880 */
89- CONSTEXP double s_LN10 = std::log ( 10 ) ;
81+ const double s_LN10 = std::log ( 10 ) ;
9082 // ==========================================================================
9183 /* * @var s_SQRTPIHALF
9284 * helper constant \f$ \sqrt{\frac{\pi}{2}}\f$
9385 * @author Vanya BELYAEV Ivan.Belyaev@cern.ch
9486 * @date 2010-04-19
9587 */
96- CONSTEXP double s_SQRTPIHALF = std::sqrt( M_PI_2 ) ;
88+ const double s_SQRTPIHALF = std::sqrt( M_PI_2 ) ;
9789 // ==========================================================================
9890 /* * @var s_SQRTPI
9991 * helper constant \f$ \sqrt{\pi}\f$
10092 * @author Vanya BELYAEV Ivan.Belyaev@itep.ru
10193 * @date 2016-06-11
10294 */
103- CONSTEXP double s_SQRTPI = std::sqrt( M_PI ) ;
95+ const double s_SQRTPI = std::sqrt( M_PI ) ;
10496 // ==========================================================================
10597 /* * @var s_SQRT2PI
10698 * helper constant \f$ \sqrt{2\pi}\f$
10799 * @author Vanya BELYAEV Ivan.Belyaev@cern.ch
108100 * @date 2010-04-19
109101 */
110- CONSTEXP double s_SQRT2PI = std::sqrt ( 2 * M_PI ) ;
102+ const double s_SQRT2PI = std::sqrt ( 2 * M_PI ) ;
111103 // ===========================================================================
112104 /* * @var s_SQRT2PIi
113105 * helper constant \f$ \frac{1}{\sqrt{2\pi}}\f$
114106 * @author Vanya BELYAEV Ivan.Belyaev@cern.ch
115107 * @date 2010-04-19
116108 */
117- CONSTEXP double s_SQRT2PIi = 1 ./s_SQRT2PI ;
109+ const double s_SQRT2PIi = 1 ./s_SQRT2PI ;
118110 // ===========================================================================
119111 /* * @var s_SQRT2
120112 * helper constant \f$\sqrt{2}\f$
121113 * @author Vanya BELYAEV Ivan.Belyaev@cern.ch
122114 * @date 2013-08-25
123115 */
124- CONSTEXP double s_SQRT2 = std::sqrt ( 2.0 ) ;
116+ const double s_SQRT2 = std::sqrt ( 2.0 ) ;
125117 // ===========================================================================
126118 /* * @var s_SQRT2i
127119 * helper constant \f$\frac{1}{\sqrt{2}}\f$
128120 * @author Vanya BELYAEV Ivan.Belyaev@cern.ch
129121 * @date 2013-08-25
130122 */
131- CONSTEXP double s_SQRT2i = 1 /std::sqrt ( 2.0 ) ;
123+ const double s_SQRT2i = 1 /std::sqrt ( 2.0 ) ;
132124 // ===========================================================================
133125 /* * @var s_HALFSQRTPI
134126 * helper constant \f$ \frac{\sqrt{\pi}}{2}\f$
135127 * @author Vanya BELYAEV Ivan.Belyaev@cern.ch
136128 * @date 2010-04-19
137129 */
138- CONSTEXP double s_HALFSQRTPI = 0.5 * std::sqrt ( M_PI ) ;
130+ const double s_HALFSQRTPI = 0.5 * std::sqrt ( M_PI ) ;
139131 // ==========================================================================
140132 /* * @var s_HALFSQRTPIi
141133 * helper constant \f$ \frac{2}{\sqrt{\pi}}\f$
142134 * @author Vanya BELYAEV Ivan.Belyaev@cern.ch
143135 * @date 2010-04-19
144136 */
145- CONSTEXP double s_HALFSQRTPIi = 1 /s_HALFSQRTPI ;
137+ const double s_HALFSQRTPIi = 1 /s_HALFSQRTPI ;
146138 // ==========================================================================
147139 /* * @var s_SQRT3
148140 * helper constant \f$ \sqrt{3} \f$
149141 * @author Vanya BELYAEV Ivan.Belyaev@itep.ru
150142 * @date 2015-08-21
151143 */
152- CONSTEXP double s_SQRT3 = std::sqrt ( 3.0 ) ;
144+ const double s_SQRT3 = std::sqrt ( 3.0 ) ;
153145 // ==========================================================================
154146 /* * @var s_HALFSQRTPI_log
155147 * helper constant \f$ \log \frac{\sqrt{\pi}}{2}\f$
156148 * @author Vanya BELYAEV Ivan.Belyaev@cern.ch
157149 * @date 2010-04-19
158150 */
159- CONSTEXP double s_HALFSQRTPI_log = std::log ( 0.5 * std::sqrt ( M_PI ) ) ;
151+ const double s_HALFSQRTPI_log = std::log ( 0.5 * std::sqrt ( M_PI ) ) ;
160152 // ==========================================================================
161153 /* * @var s_SQRT2PISQUARED
162154 * helper constant \f$ \sqrt{2}\pi^2\f$
163155 * @author Vanya BELYAEV Ivan.Belyaev@cern.ch
164156 * @date 2016-06-11
165157 */
166- CONSTEXP double s_SQRT2PISQUARED = std::sqrt(2.0 )*M_PI*M_PI ;
158+ const double s_SQRT2PISQUARED = std::sqrt(2.0 )*M_PI*M_PI ;
167159 // ==========================================================================
168160 /* * @var s_SQRT2PISQUAREDi
169161 * helper constant \f$ \frac{1}{\sqrt{2}\pi^2}\f$
170162 * @author Vanya BELYAEV Ivan.Belyaev@cern.ch
171163 * @date 2016-06-11
172164 */
173- CONSTEXP double s_SQRT2PISQUAREDi = 1.0 /(std::sqrt(2.0 )*M_PI*M_PI) ;
165+ const double s_SQRT2PISQUAREDi = 1.0 /(std::sqrt(2.0 )*M_PI*M_PI) ;
174166 // ==========================================================================
175167 /* * @var s_SQRT3overPI
176168 * helper constant \f$ \frac{\sqrt{3}}{\pi} \f$
177169 * @author Vanya BELYAEV Ivan.Belyaev@cern.ch
178170 * @date 2016-06-14
179171 */
180- CONSTEXP double s_SQRT3overPI = std::sqrt(3.0 )/M_PI ;
172+ const double s_SQRT3overPI = std::sqrt(3.0 )/M_PI ;
181173 // ==========================================================================
182174 // Bukin & Co
183175 // ==========================================================================
@@ -187,15 +179,15 @@ namespace
187179 * @author Vanya BELYAEV Ivan.Belyaev@cern.ch
188180 * @date 2010-04-19
189181 */
190- CONSTEXP double s_Bukin = std::sqrt ( 2.0 * std::log ( 2.0 ) ) ;
182+ const double s_Bukin = std::sqrt ( 2.0 * std::log ( 2.0 ) ) ;
191183 // ==========================================================================
192184 /* * @var s_ln2
193185 * useful constant for Bukin's function
194186 * \f$ \log 2 \f$
195187 * @author Vanya BELYAEV Ivan.Belyaev@cern.ch
196188 * @date 2010-04-19
197189 */
198- CONSTEXP double s_ln2 = std::log ( 2.0 ) ;
190+ const double s_ln2 = std::log ( 2.0 ) ;
199191
200192
201193 // ==========================================================================
0 commit comments