From 043046c0683db70fc6c8e968d4f1674d02d57213 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 6 Oct 2020 19:50:36 +0200 Subject: [PATCH] refactor: [[nodiscard]] added to `min_expl` --- test/unit_test/static/custom_rep_test_min_expl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit_test/static/custom_rep_test_min_expl.cpp b/test/unit_test/static/custom_rep_test_min_expl.cpp index fb2d75f3..8d305309 100644 --- a/test/unit_test/static/custom_rep_test_min_expl.cpp +++ b/test/unit_test/static/custom_rep_test_min_expl.cpp @@ -60,14 +60,14 @@ public: min_expl& operator=(min_expl&&) requires (Mode == 6) = delete; // equality - bool operator==(const min_expl&) const requires (Mode != 7) = default; + [[nodiscard]] bool operator==(const min_expl&) const requires (Mode != 7) = default; // scalability - multiplication - friend constexpr min_expl operator*(const min_expl& lhs, const min_expl& rhs) requires (Mode != 8) + [[nodiscard]] friend constexpr min_expl operator*(const min_expl& lhs, const min_expl& rhs) requires (Mode != 8) { return min_expl(lhs.value_ * rhs.value_); } // scalability - division - friend constexpr min_expl operator/(const min_expl& lhs, const min_expl& rhs) requires (Mode != 9) + [[nodiscard]] friend constexpr min_expl operator/(const min_expl& lhs, const min_expl& rhs) requires (Mode != 9) { return min_expl(lhs.value_ / rhs.value_); } };