Skip to content
Snippets Groups Projects
Commit 1bc8ed9a authored by Tristan Walter's avatar Tristan Walter
Browse files

* use infinity in situations where its preferable to max()

parent cfd1d5e0
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ namespace track { ...@@ -26,7 +26,7 @@ namespace track {
long_t number_frames; long_t number_frames;
Single(idx_t id = std::numeric_limits<idx_t>::max()) Single(idx_t id = infinity<idx_t>())
: id(id), midline_len(0), midline_std(0), distance_travelled(0), grid_cells_visited(0), median_angle_var(0), number_frames(0) : id(id), midline_len(0), midline_std(0), distance_travelled(0), grid_cells_visited(0), median_angle_var(0), number_frames(0)
{ } { }
......
...@@ -114,7 +114,7 @@ namespace track { ...@@ -114,7 +114,7 @@ namespace track {
class Identity { class Identity {
public: public:
static constexpr auto InvalidID = std::numeric_limits<uint32_t>::max(); static constexpr auto InvalidID = infinity<uint32_t>();
protected: protected:
GETTER_SETTER(gui::Color, color) GETTER_SETTER(gui::Color, color)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment