Author: aconway
Date: Tue Apr 15 07:54:46 2008
New Revision: 648272
URL: http://svn.apache.org/viewvc?rev=648272&view=rev
Log:
Fix build error: MapValue SIZE was too small for Struct32.
Modified:
incubator/qpid/trunk/qpid/cpp/src/qpid/amqp_0_10/Map.h
Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/amqp_0_10/Map.h
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/amqp_0_10/Map.h?rev=648272&r1=648271&r2=648272&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/amqp_0_10/Map.h (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/amqp_0_10/Map.h Tue Apr 15 07:54:46
2008
@@ -70,7 +70,11 @@
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;