Skip to content

Correct the accessor pages of the operator and conversion dispatches - #93

Open
mingxwa wants to merge 1 commit into
ngcpp:feature/v5from
mingxwa:user/mingxwa/fix-accessor-docs
Open

mingxwa wants to merge 1 commit into
ngcpp:feature/v5from
mingxwa:user/mingxwa/fix-accessor-docs

Conversation

@mingxwa

@mingxwa mingxwa commented Sep 26, 2026

Copy link
Copy Markdown
Member

Several statements on these pages did not match the implementation.

  • Prefix ++ and -- were listed with the regular SOPs, whose accessors return the result of the dispatch. The prefix forms return the operand, and the postfix forms take an int and return the result, so both now have their own section.
  • The right-hand-side assignment operators were specified on R(Arg) cv ref noex and said to return the proxy operand. They are specialized on R(Arg&) cv ref noex, take the left operand by lvalue reference, and return it.
  • The table of operator_dispatch gave !self for "~".
  • The accessor of implicit_conversion_dispatch was said to invoke without the dispatch type.
  • The assignment paragraph was labeled (4) instead of its own number, the "!" and "~" section read "either ... and ...", the specializations in the code blocks lacked their semicolons, and two sentences had a doubled space.

Several statements on these pages did not match the implementation.

- Prefix `++` and `--` were listed with the regular SOPs, whose
  accessors return the result of the dispatch. The prefix forms return
  the operand, and the postfix forms take an `int` and return the
  result, so both now have their own section.
- The right-hand-side assignment operators were specified on
  `R(Arg) cv ref noex` and said to return the proxy operand. They are
  specialized on `R(Arg&) cv ref noex`, take the left operand by lvalue
  reference, and return it.
- The table of `operator_dispatch` gave `!self` for `"~"`.
- The accessor of `implicit_conversion_dispatch` was said to invoke
  without the dispatch type.
- The assignment paragraph was labeled `(4)` instead of its own
  number, the `"!"` and `"~"` section read "either ... and ...", the
  specializations in the code blocks lacked their semicolons, and two
  sentences had a doubled space.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant