forked from boostorg/config
Added BOOST_DINKUMWARE_STDLIB macro
[SVN r16172]
This commit is contained in:
20
config.htm
20
config.htm
@@ -1029,16 +1029,13 @@ provide workarounds for compiler/standard library defects.</p>
|
|||||||
<td valign="top" width="50%"><p align="center"><b>Description</b></p>
|
<td valign="top" width="50%"><p align="center"><b>Description</b></p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" width="50%">BOOST_DEDUCED_TYPENAME</td>
|
<td valign="top" width="50%">BOOST_DEDUCED_TYPENAME</td>
|
||||||
|
<td valign="top" width="50%">Some compilers don't support
|
||||||
<td valign="top" width="50%">Some compilers don't support the
|
the use of <code>typename</code> for dependent types in
|
||||||
use of <code>typename</code> for dependent types in deduced
|
deduced contexts. This macro expands to nothing on those
|
||||||
contexts. This macro expands to nothing on those compilers,
|
compilers, and <code>typename</code> elsewhere. For
|
||||||
and <code>typename</code> elsewhere.
|
example, replace:<pre>template <class T> void f(T, typename T::type);</pre>
|
||||||
|
|
||||||
For example, replace:<pre>template <class T> void f(T, typename T::type);</pre>
|
|
||||||
<p>with:</p>
|
<p>with:</p>
|
||||||
<pre>template <class T> void f(T, BOOST_DEDUCED_TYPENAME T::type);</pre>
|
<pre>template <class T> void f(T, BOOST_DEDUCED_TYPENAME T::type);</pre>
|
||||||
</td>
|
</td>
|
||||||
@@ -1144,6 +1141,13 @@ user code.</p>
|
|||||||
Microsoft Visual C++, as opposed to one of the many other
|
Microsoft Visual C++, as opposed to one of the many other
|
||||||
compilers that also define _MSC_VER.</td>
|
compilers that also define _MSC_VER.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>BOOST_DINKUMWARE_STDLIB</td>
|
||||||
|
<td><boost/config.hpp></td>
|
||||||
|
<td>Defined if the dinkumware standard library is in use,
|
||||||
|
takes the same value as the Dinkumware library version
|
||||||
|
macro _CPPLIB_VER if defined, otherwise 1.</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" width="33%">BOOST_NO_WREGEX</td>
|
<td valign="top" width="33%">BOOST_NO_WREGEX</td>
|
||||||
<td valign="top" width="33%"><boost/regex.hpp></td>
|
<td valign="top" width="33%"><boost/regex.hpp></td>
|
||||||
|
@@ -69,6 +69,12 @@
|
|||||||
# define BOOST_NO_STD_LOCALE
|
# define BOOST_NO_STD_LOCALE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _CPPLIB_VER
|
||||||
|
# define BOOST_DINKUMWARE_STDLIB _CPPLIB_VER
|
||||||
|
#else
|
||||||
|
# define BOOST_DINKUMWARE_STDLIB 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _CPPLIB_VER
|
#ifdef _CPPLIB_VER
|
||||||
# define BOOST_STDLIB "Dinkumware standard library version " BOOST_STRINGIZE(_CPPLIB_VER)
|
# define BOOST_STDLIB "Dinkumware standard library version " BOOST_STRINGIZE(_CPPLIB_VER)
|
||||||
#else
|
#else
|
||||||
@@ -80,3 +86,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user