Skip to content

[CWG 2026-06-20] P3540R3 #embed offset parameter#9152

Merged
tkoeppe merged 1 commit into
mainfrom
motions-2026-06-cwg-20
Jul 15, 2026
Merged

[CWG 2026-06-20] P3540R3 #embed offset parameter#9152
tkoeppe merged 1 commit into
mainfrom
motions-2026-06-cwg-20

Conversation

@burblebee

@burblebee burblebee commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Fixes #9087.

Notes: There are many problems with the wording - see embedded FIXMEs. For example, parse this in [cpp.embed.gen]p12: "First, resource-offset calls to std::fgetc from the resource as a binary file have their result discarded and ignored."

Also fixes cplusplus/papers#2177

@burblebee
burblebee marked this pull request as ready for review June 20, 2026 04:52
@jensmaurer

Copy link
Copy Markdown
Member

So, first of all, the hyphenated names are that: hyphenated names. Please review the math rendering carefully; there is only one subtraction; the rest is hyphenated names. You might need to apply "\mathrm" or so liberally.

CWG discussed this (and the confusion potential) during review and decided to leave the hyphenated names as-is for now, and consider a change to single-letter "math" variables as an editorial improvement later. There was generally positive sentiment to do that, but at least one participant wanted to see the outcome before committing.

@eisenwave eisenwave added this to the post-2026-06 milestone Jun 30, 2026
@tkoeppe
tkoeppe force-pushed the motions-2026-06-cwg-20 branch 2 times, most recently from fc3b2ea to 46714d5 Compare July 15, 2026 03:02
Editorial note:
  * [cpp.embed.gen] added the words "the value" before two long
    mathematical expressions, both for ease of reading and to make
    the lines fit better.
@tkoeppe
tkoeppe force-pushed the motions-2026-06-cwg-20 branch from 46714d5 to 011be33 Compare July 15, 2026 03:09
@tkoeppe
tkoeppe merged commit c3e5476 into main Jul 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2026-06 CWG Motion 20] P3540R3 #embed offset parameter P3540 R3 #embed Parameter offset

4 participants