mpusz / mp-units

The quantities and units library for C++
https://mpusz.github.io/mp-units/
MIT License
1.07k stars 85 forks source link

`sudo_cast` should not depend on default construction of `T` #504

Closed mpusz closed 3 weeks ago

mpusz commented 11 months ago

Most probably, we will drop the default constructibility requirement of std::regular for representation types. With that, our internal casting function sudo_cast should not depend on it as well.

mpusz commented 3 weeks ago

Was no longer the case. However, the default constructibility was required in a few other places. Now, it is no longer needed.