summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-04-15 14:54:46 +0000
committerAlan Conway <aconway@apache.org>2008-04-15 14:54:46 +0000
commitdf53cdeef2ceea78010708a1135c64830aa3049e (patch)
treeebcbfbb5a24752b4293f922999cc5739c546277f /qpid/cpp/src
parent858abcc4007a265d07ef0667956b6c26a4e9f316 (diff)
downloadqpid-python-df53cdeef2ceea78010708a1135c64830aa3049e.tar.gz
Fix build error: MapValue SIZE was too small for Struct32.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@648272 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/amqp_0_10/Map.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/amqp_0_10/Map.h b/qpid/cpp/src/qpid/amqp_0_10/Map.h
index c0dcf73930..4093b1a0aa 100644
--- a/qpid/cpp/src/qpid/amqp_0_10/Map.h
+++ b/qpid/cpp/src/qpid/amqp_0_10/Map.h
@@ -70,7 +70,11 @@ class MapValue {
private:
- static const size_t SIZE=128 < sizeof(Vbin32) ? sizeof(Vbin32) : 128;
+ // TODO aconway 2008-04-15: Estimate required size, we will get a
+ // compile error from static_assert in Blob.h if the estimate is too
+ // low. We can't use sizeof() directly because #include Struct32.h
+ // creates a circular dependency. Needs a better solution.
+ static const size_t SIZE=256;
typedef framing::Blob<SIZE> Blob;
template <class V> struct VisitVisitor;