summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-03-12 06:07:44 +0000
committerAlan Conway <aconway@apache.org>2008-03-12 06:07:44 +0000
commitd1bdf9110c609d605fd1ed4153fa4bc0a3f23a8f (patch)
treef965ef23f84ba23b7f26c688eb5f336daa7a8a12 /cpp
parenteadb91781ab0d6e786500a3798f1bf2a83293a05 (diff)
downloadqpid-python-d1bdf9110c609d605fd1ed4153fa4bc0a3f23a8f.tar.gz
Fix build failure.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@636211 13f79535-47bb-0310-9956-ffa450edef68
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(); }