|
Boost-Commit : |
From: steven_at_[hidden]
Date: 2007-12-01 14:16:49
Author: steven_watanabe
Date: 2007-12-01 14:16:49 EST (Sat, 01 Dec 2007)
New Revision: 41543
URL: http://svn.boost.org/trac/boost/changeset/41543
Log:
Bring limits.hpp into line with the boost min/max guidelines
Text files modified:
sandbox/units/boost/units/limits.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: sandbox/units/boost/units/limits.hpp
==============================================================================
--- sandbox/units/boost/units/limits.hpp (original)
+++ sandbox/units/boost/units/limits.hpp 2007-12-01 14:16:49 EST (Sat, 01 Dec 2007)
@@ -20,8 +20,8 @@
public:
typedef ::boost::units::quantity<Unit, T> quantity_type;
static const bool is_specialized = std::numeric_limits<T>::is_specialized;
- static quantity_type min() { return(quantity_type::from_value(std::numeric_limits<T>::min())); }
- static quantity_type max() { return(quantity_type::from_value(std::numeric_limits<T>::max())); }
+ static quantity_type (min)() { return(quantity_type::from_value((std::numeric_limits<T>::min)())); }
+ static quantity_type (max)() { return(quantity_type::from_value((std::numeric_limits<T>::max)())); }
static const int digits = std::numeric_limits<T>::digits;
static const int digits10 = std::numeric_limits<T>::digits10;
static const bool is_signed = std::numeric_limits<T>::is_signed;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk