Skip to content

Commit

Permalink
mark unit conversions const
Browse files Browse the repository at this point in the history
  • Loading branch information
toxicdefender404 committed Dec 27, 2024
1 parent cdf1f2d commit 2c93ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/units/units.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Quantity {
constexpr double internal() const { return value; }

// TODO: document this
constexpr double convert(Self quantity) { return value / quantity.value; }
constexpr double convert(Self quantity) const { return value / quantity.value; }

/**
* @brief set the value of this quantity to its current value plus another quantity
Expand Down

0 comments on commit 2c93ea3

Please sign in to comment.