We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d88936 commit f8d0313Copy full SHA for f8d0313
2 files changed
include/osmium/util/delta.hpp
@@ -129,6 +129,10 @@ namespace osmium {
129
return m_value;
130
}
131
132
+ TValue value() const noexcept {
133
+ return m_value;
134
+ }
135
+
136
}; // class DeltaDecode
137
138
} // namespace util
test/t/util/test_delta.cpp
@@ -35,10 +35,14 @@ TEST_CASE("delta decode int") {
35
osmium::DeltaDecode<int> x;
36
37
REQUIRE(x.update(17) == 17);
38
+ REQUIRE(x.value() == 17);
39
REQUIRE(x.update(10) == 27);
40
+ REQUIRE(x.value() == 27);
41
REQUIRE(x.update(-40) == -13);
42
+ REQUIRE(x.value() == -13);
43
x.clear();
44
45
46
47
48
TEST_CASE("delta decode int with int32") {
0 commit comments