SciNim / Unchained

A fully type safe, compile time only units library.
https://scinim.github.io/Unchained
109 stars 0 forks source link

Improve `to` to use exact type as given by the user #50

Closed Vindaar closed 2 months ago

Vindaar commented 2 months ago

This is to guarantee the property x.to(T) is T always holds. This is needed in Measuremancer's FloatLike concept.

Vindaar commented 2 months ago

I guess OSX is still a problem, merging already.