diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/amqp_0_10/Map.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/qpid/amqp_0_10/Map.h b/cpp/src/qpid/amqp_0_10/Map.h index c0dcf73930..4093b1a0aa 100644 --- a/cpp/src/qpid/amqp_0_10/Map.h +++ b/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; |