summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/amqp_0_10/Segment.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/amqp_0_10/Segment.h b/cpp/src/qpid/amqp_0_10/Segment.h
index 219517811a..b779b98dd1 100644
--- a/cpp/src/qpid/amqp_0_10/Segment.h
+++ b/cpp/src/qpid/amqp_0_10/Segment.h
@@ -76,7 +76,7 @@ class Segment::const_iterator : public boost::iterator_facade<
const_iterator() : frames(), p() {}
private:
-#ifndef NDEBUG
+
void invariant() const {
assert(frames);
assert(frames->begin() <= i);
@@ -88,7 +88,7 @@ class Segment::const_iterator : public boost::iterator_facade<
invariant();
assert(p < i->end());
}
-#endif
+
const_iterator(const Frames& f, Frames::const_iterator pos, const char* ptr)
: frames(&f), i(pos), p(ptr) { skip_empty(); }