Closed pitdicker closed 1 year ago
Sorry, this request didn't make sense. Ignore me 😄
From a technical perspective it could be done and would solve your issue, but I wouldn't make the change regardless because there are invariants that need to be upheld.
For Chrono I am preparing a branch that makes more methods const. Because the
Duration
type of time 0.1 is part of its public API it still has a dependency on that old version (although it can be disabled).I am not asking for major changes. But would you consider making a new point release that makes the fields of
Duration
public? That would make it possible to convert fromtime::Duration
to our own implementation, even in const methods.