Boost logo

Boost :

Subject: Re: [boost] [config] check for std::numeric_limits<T>::lowest()availability
From: John Maddock (boost.regex_at_[hidden])
Date: 2010-09-22 04:06:30

>I would like to use std::numeric_limits<T>::lowest() when the standard
>library provides it. As this is a
>specific function on C++0X, I was looking for a macro on Boost.Config that
>allows to use it conditionally,
>unfortunatelly I have not found any.

Because, no one has asked for it yet :-)

Do you have a patch?

>What will be the right way to do that? Any chance <boost/limmits.hpp>
>manage with that?

No, boost/limits.hpp just provides a replacement when the std version isn't
available, and we can't extend numeric_limits ourselves, so yes a config
macro would be the way to go.


Boost list run by bdawes at, gregod at, cpdaniel at, john at