mirror of
https://github.com/boostorg/more.git
synced 2025-02-25 09:20:13 +08:00
English fixes
wchar_t is a typedef in <cstddef> [SVN r8884]
This commit is contained in:
parent
99b38193da
commit
9f31208296
@ -107,7 +107,7 @@ int main()
|
|||||||
|
|
||||||
The scope of variable definitions in <code>for</code> loops should be
|
The scope of variable definitions in <code>for</code> loops should be
|
||||||
local to the loop's body, but it is instead local to the enclosing
|
local to the loop's body, but it is instead local to the enclosing
|
||||||
block:
|
block.
|
||||||
|
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
@ -142,7 +142,7 @@ struct A
|
|||||||
<h3>[koenig-lookup] Argument-dependent lookup</h3>
|
<h3>[koenig-lookup] Argument-dependent lookup</h3>
|
||||||
|
|
||||||
Argument-dependent lookup, also called Koenig lookup, does not work.
|
Argument-dependent lookup, also called Koenig lookup, does not work.
|
||||||
No additional namespace induced from the argument types seem to be
|
No additional namespaces induced from the argument types seem to be
|
||||||
considered.
|
considered.
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
@ -241,6 +241,14 @@ The type <code>wchar_t</code> is not a built-in type.
|
|||||||
wchar_t x; // "missing storage class or type identifier"
|
wchar_t x; // "missing storage class or type identifier"
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
<strong>Workaround:</strong> The header <code><cstddef></code>
|
||||||
|
provides a typedef for <code>wchar_t</code> and
|
||||||
|
<a href="../boost/config.hpp">boost/config.hpp</a>
|
||||||
|
includes it to provide the workaround. Note that this is not a
|
||||||
|
distinct type from any other built-in type as required by the
|
||||||
|
standard, so ambiguities when overloading on <code>wchar_t</code> may
|
||||||
|
emanate.
|
||||||
|
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
Standard Library</h2>
|
Standard Library</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user