Landing: eae197924c7e
Project / Subsystem
gcc / libstdc++
Date
2026-05-26
Author
Tomasz Kamiński
Commit
eae197924c7ecfe7073914e141941f582cc32828
Source
github
Perf win
No
Breaking
Yes
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- eae197924c7ecfe7073914e141941f582cc32828
- source_type
- github
- headline
- libstdc++: Change piecewise distribution densities to return vector<result_type>.
- tldr
- Updates piecewise distribution densities to return `vector<result_type>` aligning with LWG1439.
- author
- Tomasz Kamiński
- outcome
- committed
- performance_win
- false
- breaking_change
- true
- series_id
- —
- series_parts
- []
- tags
-
- • libstdc++
- • random
- • cpp
- • abi
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-26T00:00:00.000Z
This change modifies piecewise_linear_distribution in libstdc++ to return vector<result_type> from its densities() member functions, aligning with the LWG1439 resolution. ABI compatibility is maintained by storing densities in a potentially different _StorageType and converting to result_type on access. New macros are introduced to manage ABI compatibility and to enable unconditional use of result_type for internal storage.