Skip to content

Use fold expression in ostream impl#351

Merged
nholthaus merged 1 commit intonholthaus:v3.xfrom
KangarooKoala:use-fold-expression
Dec 15, 2025
Merged

Use fold expression in ostream impl#351
nholthaus merged 1 commit intonholthaus:v3.xfrom
KangarooKoala:use-fold-expression

Conversation

@KangarooKoala
Copy link

@KangarooKoala KangarooKoala commented Dec 12, 2025

Fold expressions were introduced in C++17, and v3.x targets C++23 and higher, so this should be fine.

I considered updating is_linear_scale and is_decibel_scale to also use fold expressions, but since those use std::bool_constant, it didn't end up being more expressive. (I'd have to wrap the fold expression in std::bool_constant<()>, which adds more clutter)

@nholthaus nholthaus merged commit d27d0c3 into nholthaus:v3.x Dec 15, 2025
3 checks passed
@KangarooKoala KangarooKoala deleted the use-fold-expression branch December 15, 2025 17:46
@chiphogg
Copy link

v3.x targets C++23 and higher

Just wanted to double check here: v3.x has a minimum standard version of C++17 according to the README, right? I find the C++23 comment very surprising.

@nholthaus
Copy link
Owner

nholthaus commented Dec 15, 2025 via email

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.

3 participants