mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed a MSVC 2013 compiler error in juce_MathsFunctions.h
This commit is contained in:
parent
3b8f33e9a8
commit
ec2f7219c5
1 changed files with 9 additions and 2 deletions
|
|
@ -343,12 +343,19 @@ template <typename FloatType>
|
|||
struct MathConstants
|
||||
{
|
||||
/** A predefined value for Pi */
|
||||
static constexpr FloatType pi = static_cast<FloatType> (3.141592653589793238L);
|
||||
static const FloatType pi;
|
||||
|
||||
/** A predfined value for Euler's number */
|
||||
static constexpr FloatType euler = static_cast<FloatType> (2.71828182845904523536L);
|
||||
static const FloatType euler;
|
||||
};
|
||||
|
||||
template <typename FloatType>
|
||||
const FloatType MathConstants<FloatType>::pi = static_cast<FloatType> (3.141592653589793238L);
|
||||
|
||||
template <typename FloatType>
|
||||
const FloatType MathConstants<FloatType>::euler = static_cast<FloatType> (2.71828182845904523536L);
|
||||
|
||||
|
||||
/** A predefined value for Pi, at double-precision.
|
||||
@see float_Pi
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue