fix: ✨ Visual Studio caught up with terse form of constraints

This commit is contained in:
Mateusz Pusz
2021-03-12 23:06:11 +01:00
parent a91e234c90
commit 069712b222
5 changed files with 15 additions and 19 deletions
+2 -4
View File
@@ -107,8 +107,6 @@ struct fmt::formatter<glide_computer::altitude> : formatter<units::physical::si:
// definition of glide computer databases and utilities
namespace glide_computer {
using namespace si::unit_constants;
struct glider {
struct polar_point {
velocity v;
@@ -162,7 +160,7 @@ public:
distance get_length() const { return length_; }
distance get_leg_dist_offset(size_t leg_index) const { return leg_index == 0 ? distance(0 * km) : leg_total_distances_[leg_index - 1]; }
distance get_leg_dist_offset(size_t leg_index) const { return leg_index == 0 ? distance{} : leg_total_distances_[leg_index - 1]; }
size_t get_leg_index(distance dist) const
{
return static_cast<size_t>(std::ranges::distance(leg_total_distances_.cbegin(), std::ranges::lower_bound(leg_total_distances_, dist)));
@@ -191,7 +189,7 @@ struct flight_point {
timestamp ts;
altitude alt;
size_t leg_idx = 0;
distance dist{0 * km};
distance dist{};
};
altitude terrain_level_alt(const task& t, const flight_point& pos);