summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-03-27 12:47:57 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-27 18:54:56 +0200
commit8b2361e36259336e45e85c3859b3f513d7ddfaba (patch)
treec7e22195e473a9c4e653a31b73071f18fe289619 /AK
parent76e85ebbfcc86eb4a6d317dc319f707df417001b (diff)
downloadserenity-8b2361e36259336e45e85c3859b3f513d7ddfaba.zip
AK: Add non-const DistinctNumeric::value() getter
Diffstat (limited to 'AK')
-rw-r--r--AK/DistinctNumeric.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/AK/DistinctNumeric.h b/AK/DistinctNumeric.h
index 308668451e..95ebd53d39 100644
--- a/AK/DistinctNumeric.h
+++ b/AK/DistinctNumeric.h
@@ -60,6 +60,7 @@ public:
}
constexpr const T& value() const { return m_value; }
+ constexpr T& value() { return m_value; }
// Always implemented: identity.
constexpr bool operator==(const Self& other) const