Skip to content

Consider implementing std::ops operators for owned Zoned types #396

@mqudsi

Description

@mqudsi

Currently symbolic mathematical operations involving Zoned types are only implemented for &Zoned references (in part because Zoned is not Copy). This could lead one to assume that these operators are not defined/present at all when attempting to perform these operations owned Zoned instances (as would be most natural, for example, when dealing with temporaries).

This would be strictly in addition to the current definitions implemented on &Zoned references, to improve the usability of the library and make these features more discoverable (as originally discussed in #390).

(I'm not sure if there are any other types that this proposal should extend to, as I understand it all the remaining important types that one would perform math on are Copy?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions