summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/AccumulatedAck.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib/broker/AccumulatedAck.h')
-rw-r--r--cpp/lib/broker/AccumulatedAck.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/lib/broker/AccumulatedAck.h b/cpp/lib/broker/AccumulatedAck.h
index 6ab0cfbe2e..eaae652a30 100644
--- a/cpp/lib/broker/AccumulatedAck.h
+++ b/cpp/lib/broker/AccumulatedAck.h
@@ -31,7 +31,8 @@ namespace qpid {
* Keeps an accumulated record of acked messages (by delivery
* tag).
*/
- struct AccumulatedAck{
+ class AccumulatedAck {
+ public:
/**
* If not zero, then everything up to this value has been
* acked.
@@ -43,6 +44,7 @@ namespace qpid {
*/
std::list<u_int64_t> individual;
+ AccumulatedAck(u_int64_t r) : range(r) {}
void update(u_int64_t firstTag, u_int64_t lastTag);
void consolidate();
void clear();