forked from boostorg/config
BOOST_NO_LIMITS should not be used by user code; use <boost/limits.hpp> instead
BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS should not be defined when BOOST_NO_LIMITS is defined [SVN r13340]
This commit is contained in:
@@ -589,7 +589,10 @@ f(&bar); // should choose #2.</pre>
|
|||||||
<td valign="top" width="51%">BOOST_NO_LIMITS</td>
|
<td valign="top" width="51%">BOOST_NO_LIMITS</td>
|
||||||
<td valign="top" width="16%">Standard library</td>
|
<td valign="top" width="16%">Standard library</td>
|
||||||
<td valign="top" width="33%">The C++ implementation does
|
<td valign="top" width="33%">The C++ implementation does
|
||||||
not provide the <limits> header.</td>
|
not provide the <limits> header. Never check for this
|
||||||
|
symbol in library code; always include
|
||||||
|
<boost/limits.hpp>, which guarantees to provide
|
||||||
|
<code>std::numeric_limits</code>.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" width="51%">BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS</td>
|
<td valign="top" width="51%">BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS</td>
|
||||||
|
@@ -82,6 +82,8 @@
|
|||||||
# include <string>
|
# include <string>
|
||||||
# if defined(__BASTRING__)
|
# if defined(__BASTRING__)
|
||||||
# define BOOST_NO_LIMITS
|
# define BOOST_NO_LIMITS
|
||||||
|
// Note: <boost/limits.hpp> will provide compile-time constants
|
||||||
|
# undef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
|
||||||
# define BOOST_NO_STD_WSTRING
|
# define BOOST_NO_STD_WSTRING
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user