summaryrefslogtreecommitdiff
path: root/qpid/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
commit9a079ae3e3661f0e3d3c650f4133f8fa51de0e57 (patch)
treec357e4ab64476d863617d0a9881c91a54483b5dd /qpid/cpp
parentc2d757b8db2dca0f2f288453a26b0cb78d430801 (diff)
downloadqpid-python-9a079ae3e3661f0e3d3c650f4133f8fa51de0e57.tar.gz
Fix build failure.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@636211 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/amqp_0_10/Segment.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/amqp_0_10/Segment.h b/qpid/cpp/src/qpid/amqp_0_10/Segment.h
index 219517811a..b779b98dd1 100644
--- a/qpid/cpp/src/qpid/amqp_0_10/Segment.h
+++ b/qpid/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(); }