JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

Added static assert to check if FloatType is really a float

Open beschulz opened this issue 6 years ago • 0 comments

(not an int actually - to allow usage with Fixed Point types) - this is to prevent accidental precision loss when users pass integers to function like degreesToRadians()

see https://forum.juce.com/t/fr-add-static-assert-to-degreestoradians-and-radianstodegrees-to-check-if-floattype-is-indeed-a-floating-point-type/34629/2

beschulz avatar Aug 08 '19 10:08 beschulz