Skip to content

Conversation

@frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Dec 5, 2025

std::bitset or std::ratio only take constant template parameters, so none of their specialization can depend on a type. As a result, although they are not explicitly disallowed to be specialized, it is impossible to provide any valid program-defined specialization.

It's not very clear to me whether it's OK to reject all program-defined ratio_add specializations and their friends. It seems that there can be valid program-defined ratio_add partial specializations that are always ill-formed on instantiation due to static_assert, which is squirrelly🐿️.

@StephanTLavavej StephanTLavavej added the enhancement Something can be improved label Dec 5, 2025
@StephanTLavavej StephanTLavavej moved this from Initial Review to Ready To Merge in STL Code Reviews Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Something can be improved

Projects

Status: Ready To Merge

Development

Successfully merging this pull request may close these issues.

3 participants