Landing: e3e95b8b8fb3
Project / Subsystem
gcc / libstdc++
Date
2026-07-16
Author
Anlai Lu
Commit
e3e95b8b8fb3dd2a73dce10bfeaf61fe2d1c5b62
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- e3e95b8b8fb3dd2a73dce10bfeaf61fe2d1c5b62
- source_type
- github
- headline
- libstdc++: Add tests for format_to with ostreambuf_iterator
- tldr
- Adds comprehensive tests for format_to and its variants using ostreambuf_iterator.
- author
- Anlai Lu
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • testing
- • libstdc++
- • format
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-16T00:00:00.000Z
New tests verify the behavior of std::format_to and std::format_to_n with ostreambuf_iterator, covering scenarios like truncation, writing to sentinels, write failures, and large outputs exceeding internal buffers. The tests also demonstrate formatters that check for buffered output before writing to the stream.