| @@ -116,13 +116,18 @@ public: | |||||
| is equal to other. | is equal to other. | ||||
| */ | */ | ||||
| template <typename OtherType> | template <typename OtherType> | ||||
| bool operator== (const OtherType& other) const { return cachedValue == other; } | |||||
| bool operator== (const OtherType& other) const | |||||
| { | |||||
| JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wfloat-equal") | |||||
| return cachedValue == other; | |||||
| JUCE_END_IGNORE_WARNINGS_GCC_LIKE | |||||
| } | |||||
| /** Returns true if the current value of the property (or the fallback value) | /** Returns true if the current value of the property (or the fallback value) | ||||
| is not equal to other. | is not equal to other. | ||||
| */ | */ | ||||
| template <typename OtherType> | template <typename OtherType> | ||||
| bool operator!= (const OtherType& other) const { return cachedValue != other; } | |||||
| bool operator!= (const OtherType& other) const { return ! operator== (other); } | |||||
| //============================================================================== | //============================================================================== | ||||
| /** Returns the current property as a Value object. */ | /** Returns the current property as a Value object. */ | ||||