Skip to content

Commit

Permalink
Or unnamed bit-field
Browse files Browse the repository at this point in the history
  • Loading branch information
brevzin committed Nov 5, 2024
1 parent 6758557 commit a38d96c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 2996_reflection/p2996r8.html
Original file line number Diff line number Diff line change
Expand Up @@ -8964,7 +8964,8 @@ <h3 class="unnumbered" id="meta.reflection.define_aggregate-reflection-class-def
specialization of <code class="sourceCode cpp"><em>T</em></code>.</li>
<li><span class="marginalizedparent"><a class="marginalized" href="#pnum_378" id="pnum_378">(7.4)</a></span>
<code class="sourceCode cpp"><em>D</em></code> contains a public
non-static data member corresponding to each reflection value
non-static data member or unnamed bit-field corresponding to each
reflection value
<code class="sourceCode cpp"><span class="math inline"><em>r</em></span><sub><span class="math inline"><em>K</em></span></sub></code> in
<code class="sourceCode cpp">mdescrs</code>. For every other
<code class="sourceCode cpp"><span class="math inline"><em>r</em></span><sub><span class="math inline"><em>L</em></span></sub></code> in
Expand Down
2 changes: 1 addition & 1 deletion 2996_reflection/reflection.md
Original file line number Diff line number Diff line change
Expand Up @@ -5442,7 +5442,7 @@ Produces an injected declaration `$D$` ([expr.const]) that provides a definition
- [#.1]{.pnum} The target scope of `$D$` is the scope to which `$C$` belongs ([basic.scope.scope]).
- [#.#]{.pnum} The locus of `$D$` follows immediately after the manifestly constant-evaluated expression currently under evaluation.
- [#.#]{.pnum} If `$C$` is a specialization of a class template `$T$`, then `$D$` is is an explicit specialization of `$T$`.
- [#.#]{.pnum} `$D$` contains a public non-static data member corresponding to each reflection value `@$r$~$K$~@` in `mdescrs`. For every other `@$r$~$L$~@` in `mdescrs` such that `$K$ < $L$`, the declaration of `@$r$~$K$~@` precedes the declaration of `@$r$~$L$~@`.
- [#.#]{.pnum} `$D$` contains a public non-static data member or unnamed bit-field corresponding to each reflection value `@$r$~$K$~@` in `mdescrs`. For every other `@$r$~$L$~@` in `mdescrs` such that `$K$ < $L$`, the declaration of `@$r$~$K$~@` precedes the declaration of `@$r$~$L$~@`.
- [#.#]{.pnum} The non-static data member corresponding to each `@$r$~$K$~@` is declared with the type or `$typedef-name$` represented by `@$t$~$K$~@`.
- [#.#]{.pnum} Non-static data members corresponding to reflections `@$r$~$K$~@` for which `@[email protected]_unique_address` is `true` are declared with the attribute `[[no_unique_address]]`.
- [#.#]{.pnum} Non-static data members corresponding to reflections `@$r$~$K$~@` for which `@[email protected]_width` contains a value are declared as bit-fields whose width is that value.
Expand Down

0 comments on commit a38d96c

Please sign in to comment.