From 367c7d5b6e53741037829b5dc39684e568906aaa Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 2 Nov 2019 13:58:35 +0100 Subject: [PATCH] my_value constructor refactored --- test/unit_test/static/quantity_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit_test/static/quantity_test.cpp b/test/unit_test/static/quantity_test.cpp index 2e789793..61e77dbf 100644 --- a/test/unit_test/static/quantity_test.cpp +++ b/test/unit_test/static/quantity_test.cpp @@ -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; }