From d1bdf9110c609d605fd1ed4153fa4bc0a3f23a8f Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 12 Mar 2008 06:07:44 +0000 Subject: Fix build failure. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@636211 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/amqp_0_10/Segment.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src') 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(); } -- cgit v1.2.1