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:
Jens Maurer
2002-04-01 18:57:43 +00:00
parent e9a05a8e99
commit f60564c3fc
2 changed files with 6 additions and 1 deletions

View File

@ -589,7 +589,10 @@ f(&amp;bar); // should choose #2.</pre>
<td valign="top" width="51%">BOOST_NO_LIMITS</td>
<td valign="top" width="16%">Standard library</td>
<td valign="top" width="33%">The C++ implementation does
not provide the &lt;limits&gt; header.</td>
not provide the &lt;limits&gt; header. Never check for this
symbol in library code; always include
&lt;boost/limits.hpp&gt;, which guarantees to provide
<code>std::numeric_limits</code>.</td>
</tr>
<tr>
<td valign="top" width="51%">BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS</td>

View File

@ -82,6 +82,8 @@
# include <string>
# if defined(__BASTRING__)
# 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
# endif
#endif