diff options
author | Chanho Park <chanho61.park@samsung.com> | 2014-12-11 18:55:56 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-12-11 18:55:56 +0900 |
commit | 08c1e93fa36a49f49325a07fe91ff92c964c2b6c (patch) | |
tree | 7a7053ceb8874b28ec4b868d4c49b500008a102e /boost/units/limits.hpp | |
parent | bb4dd8289b351fae6b55e303f189127a394a1edd (diff) | |
download | boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.tar.gz boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.tar.bz2 boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.zip |
Imported Upstream version 1.57.0upstream/1.57.0
Diffstat (limited to 'boost/units/limits.hpp')
-rw-r--r-- | boost/units/limits.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/boost/units/limits.hpp b/boost/units/limits.hpp index 2c8a0bf087..a8b6f73263 100644 --- a/boost/units/limits.hpp +++ b/boost/units/limits.hpp @@ -18,6 +18,7 @@ #include <limits> +#include <boost/config.hpp> #include <boost/units/units_fwd.hpp> namespace std { @@ -30,8 +31,14 @@ class numeric_limits< ::boost::units::quantity<Unit, T> > 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)())); } +#ifndef BOOST_NO_CXX11_NUMERIC_LIMITS + static quantity_type (lowest)() { return(quantity_type::from_value((std::numeric_limits<T>::lowest)())); } +#endif static const int digits = std::numeric_limits<T>::digits; static const int digits10 = std::numeric_limits<T>::digits10; +#ifndef BOOST_NO_CXX11_NUMERIC_LIMITS + static const int max_digits10 = std::numeric_limits<T>::max_digits10; +#endif static const bool is_signed = std::numeric_limits<T>::is_signed; static const bool is_integer = std::numeric_limits<T>::is_integer; static const bool is_exact = std::numeric_limits<T>::is_exact; |