From 0b67a40bb9afb9f3ea71143c935db40ab01d1bdd Mon Sep 17 00:00:00 2001 From: hogliux Date: Fri, 28 Jul 2017 12:26:01 +0100 Subject: [PATCH] Fixed a MSVC 2013 compiler error in juce_MathsFunctions.h --- modules/juce_core/maths/juce_MathsFunctions.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/juce_core/maths/juce_MathsFunctions.h b/modules/juce_core/maths/juce_MathsFunctions.h index aecfbb54b2..7361ea71f0 100644 --- a/modules/juce_core/maths/juce_MathsFunctions.h +++ b/modules/juce_core/maths/juce_MathsFunctions.h @@ -343,12 +343,19 @@ template struct MathConstants { /** A predefined value for Pi */ - static constexpr FloatType pi = static_cast (3.141592653589793238L); + static const FloatType pi; /** A predfined value for Euler's number */ - static constexpr FloatType euler = static_cast (2.71828182845904523536L); + static const FloatType euler; }; +template +const FloatType MathConstants::pi = static_cast (3.141592653589793238L); + +template +const FloatType MathConstants::euler = static_cast (2.71828182845904523536L); + + /** A predefined value for Pi, at double-precision. @see float_Pi */