• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bemanproject / expected / 46659183110
98%

Build:
DEFAULT BRANCH: main
Ran 01 Dec 2026 01:46PM UTC
Jobs 1
Files 3
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Dec 2026 01:42PM UTC coverage: 97.529%. Remained the same
46659183110

push

github

web-flow
Update to specgen 0.58.0, and close the reference gaps it and optional's changes exposed (#126)

Three pieces of work, in the order the commits tell them.

## specgen 0.58.0

The generated wording in `papers/wording/` is regenerated with specgen
0.58.0, and uses what the new release offers:

- specgen now states `U` and `G` for the monadic operations from the
body's own alias, as the draft does, so the authored "where `U` is ..."
text is gone.
- `BEMAN_EXPECTED_CONSTEXPR_EXCEPTION` shows as `constexpr`, and `\omit
noexcept` / `\omit default` show the draft's declarations where the
library strengthens them.
- `error_or`'s *Constraints* are authored so they name
`error-value-type`.
- The draft's copy of the `[expected.bad.void]` synopsis is dropped from
the header; that section now has no marks against the draft.

Two specgen bugs found on the way are filed upstream:
https://github.com/steve-downey/specgen/issues/487 and
https://github.com/steve-downey/specgen/issues/488.

## Rvalue access to a referenced error

The draft spells the error of an rvalue `expected` as
`std::move(error())`. That is access-then-move: harmless while `E` could
not be a reference, and the `boost::optional<T&>` steal once it can. The
wording and the code now move the holder and then ask it,
`std::move(unex).error()`, which is `E&&` for an object `E` and `E&` for
a reference `E`. This is 23 marked places in `papers/expected-new.tex`,
the docblocks, twelve aliases and two assertions in the code, and tests
for `error_or() &&`, `value() &&` and the rvalue monadic operations.

## The base templates, checked against optional

P2988R12 and its follow-up issues made a handful of small changes to
`optional` outside `[optional.ref]`. Each names a place where a type may
now be a reference. Checking the same places in `expected` found:

- **A compile error.** Copying an `expected<T&, E>` or `unexpected<E&>`
from a const rvalue of its own type failed under gcc-16: a deleted
constructor templ... (continued)

3 of 3 new or added lines in 1 file covered. (100.0%)

829 of 850 relevant lines covered (97.53%)

23.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 46659183110.1 01 Dec 2026 01:46PM UTC 3
97.53
GitHub Action Run
Source Files on build 46659183110
  • Tree
  • List 3
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46659183110
  • eb4a6361 on github
  • Prev Build on main (#44952328621)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc