diff --git a/include/GenericToolbox.Macro.h b/include/GenericToolbox.Macro.h index d32ab2f..31d7e53 100644 --- a/include/GenericToolbox.Macro.h +++ b/include/GenericToolbox.Macro.h @@ -31,7 +31,7 @@ #endif // HAS_CPP_11 -//#define WARN_DEPRECATED_FCT +#define WARN_DEPRECATED_FCT /* Always flag deprecation */ #ifndef WARN_DEPRECATED_FCT #define GT_DEPRECATED(msg_) // nothing #else diff --git a/include/GenericToolbox.Utils.h b/include/GenericToolbox.Utils.h index c7c4a25..6d97c7d 100644 --- a/include/GenericToolbox.Utils.h +++ b/include/GenericToolbox.Utils.h @@ -422,11 +422,12 @@ namespace GenericToolbox{ [[nodiscard]] bool hasBound() const{ return hasLowerBound() or hasUpperBound(); } [[nodiscard]] bool hasBothBounds() const{ return hasLowerBound() and hasUpperBound(); } [[nodiscard]] bool isUnbounded() const{ return not hasBound(); } - [[nodiscard]] bool isBellowMin(double val_) const{ return (hasLowerBound() and val_ < min); } + [[nodiscard]] bool isBelowMin(double val_) const{ return (hasLowerBound() and val_ < min); } + [[nodiscard]] GT_DEPRECATED("replace with isBelowMin()") bool isBellowMin(double val_) const { return isBelowMin(val_); } [[nodiscard]] bool isAboveMax(double val_) const{ return (hasUpperBound() and val_ > max); } [[nodiscard]] bool isInBounds(double val_) const{ // both bounds are inclusive [min, max] - if( isBellowMin(val_) ){ return false; } + if( isBelowMin(val_) ){ return false; } if( isAboveMax(val_) ){ return false; } return true; }