forked from mpusz/mp-units
my_value constructor refactored
This commit is contained in:
@@ -36,7 +36,7 @@ namespace {
|
||||
T value_{};
|
||||
public:
|
||||
my_value() = default;
|
||||
constexpr my_value(T v) : value_{std::move(v)} {}
|
||||
constexpr my_value(T v) : value_(std::move(v)) {}
|
||||
constexpr my_value& operator+=(const my_value& other) { value_ += other.value_; return *this; }
|
||||
constexpr my_value& operator-=(const my_value& other) { value_ -= other.value_; return *this; }
|
||||
constexpr my_value& operator*=(const my_value& other) { value_ *= other.value_; return *this; }
|
||||
|
Reference in New Issue
Block a user