summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-09-10 20:52:56 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-09-10 20:52:56 +0200
commitca0e565754c6edb11d60c3f544f82a4cf81f8a4a (patch)
treeded22971cded6f70ca2537347bd9d3180269a00c
parent2dcbc3bd263907a424b68bb3393dfadd8a29f239 (diff)
Fixed operator issue
-rw-r--r--modules/codec/c++/data.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp
index 01eddb6..f55d870 100644
--- a/modules/codec/c++/data.hpp
+++ b/modules/codec/c++/data.hpp
@@ -153,12 +153,12 @@ public:
return {get() + rhs.get()};
}
- data<Schema, encode::Native>& operator+=(const data<Schema, encode::Native>& rhs)const{
+ data<Schema, encode::Native>& operator+=(const data<Schema, encode::Native>& rhs){
value_ += rhs.get();
return *this;
}
- data<Schema, encode::Native>& operator-=(const data<Schema, encode::Native>& rhs)const{
+ data<Schema, encode::Native>& operator-=(const data<Schema, encode::Native>& rhs){
value_ -= rhs.get();
return *this;
}