[msvc][fix] revert changes in example and test folder

This commit is contained in:
Jonas Hoppe
2024-09-10 10:03:37 +02:00
parent f651438f29
commit 413966efca
25 changed files with 759 additions and 771 deletions
+5 -5
View File
@@ -77,10 +77,10 @@ public:
density_ = density;
}
[[nodiscard]] constexpr QuantityOf<(isq::weight)> auto filled_weight() const
[[nodiscard]] constexpr QuantityOf<isq::weight> auto filled_weight() const
{
const auto volume = isq::volume(base_ * height_); // TODO check if we can remove that cast
const QuantityOf<(isq::mass)> auto mass = density_ * volume;
const QuantityOf<isq::mass> auto mass = density_ * volume;
return isq::weight(mass * g);
}
@@ -130,9 +130,9 @@ int main()
const quantity spare_capacity = tank.spare_capacity(measured_mass);
const quantity filled_weight = tank.filled_weight();
const QuantityOf<(isq::mass_change_rate)> auto input_flow_rate = measured_mass / fill_time;
const QuantityOf<(isq::speed)> auto float_rise_rate = fill_level / fill_time;
const QuantityOf<(isq::time)> auto fill_time_left = (height / fill_level - 1 * one) * fill_time;
const QuantityOf<isq::mass_change_rate> auto input_flow_rate = measured_mass / fill_time;
const QuantityOf<isq::speed> auto float_rise_rate = fill_level / fill_time;
const QuantityOf<isq::time> auto fill_time_left = (height / fill_level - 1 * one) * fill_time;
const quantity fill_ratio = fill_level / height;