Skip to content

[FEA]: ceil_div should return the resulting type of its operation #2845

@fbusato

Description

@fbusato

Is this a duplicate?

Area

libcu++

Is your feature request related to a problem? Please describe.

currently ceil_div(T, U) always returns the type T, which is not intuitive and bug-prone

Describe the solution you'd like

ceil_div(T, U) should instead return decltype(T{} / U{})

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

breakingBreaking changefeature requestNew feature or request.libcu++For all items related to libcu++

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions