You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The time dimension is special in C++, because there already is an implementation in the standard libraries: std::chrono::duration.
I think boost::units should recognize this and provide an easy way to convert between these two different implementations of what is basically the same thing.
Ideally one should be able to do: quantity<time> q = 2h;
where 2h is a std::literals::chrono_literals::operator""h.
The text was updated successfully, but these errors were encountered:
Yes, one problem is that chrono is based on integer value types while Boost.Units, is generally based around floating point values. But I would also like something in this direction.
The time dimension is special in C++, because there already is an implementation in the standard libraries:
std::chrono::duration
.I think boost::units should recognize this and provide an easy way to convert between these two different implementations of what is basically the same thing.
Ideally one should be able to do:
quantity<time> q = 2h;
where 2h is a
std::literals::chrono_literals::operator""h
.The text was updated successfully, but these errors were encountered: