Skip to content

Commit 7e3084c

Browse files
committed
Apply resolution of LWG 2555 (part of LWG motion 3).
1 parent f5f19db commit 7e3084c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: cxx14_index.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"basic.stc.dynamic.deallocation": "3.7.4.2",
3+
"basic.align": "3.11",
34
"expr": "5",
45
"expr.call": "5.2.2",
56
"expr.cond": "5.16",

Diff for: optional.html

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ <h1><code>optional</code> for object types</h1>
147147
is allocated within the storage of the optional object.
148148
Implementations are not permitted to use additional storage, such as dynamic memory, to allocate its contained value.
149149
The contained value shall be allocated in a region of the <code>optional&lt;T&gt;</code> storage suitably aligned for the type <code>T</code>.
150+
It is implementation-defined whether over-aligned types are supported (<cxx-ref in="cxx" to="basic.align"></cxx-ref>).
150151
When an object of type <code>optional&lt;T&gt;</code> is contextually converted to <code>bool</code>,
151152
the conversion returns <code>true</code> if the object contains a value;
152153
otherwise the conversion returns <code>false</code>.

0 commit comments

Comments
 (0)