Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74405 - trunk/boost/fusion/container
From: joel_at_[hidden]
Date: 2011-09-16 01:12:59


Author: djowel
Date: 2011-09-16 01:12:58 EDT (Fri, 16 Sep 2011)
New Revision: 74405
URL: http://svn.boost.org/trac/boost/changeset/74405

Log:
include vectorN for only what's needed depending on FUSION_MAX_VECTOR_SIZE
Text files modified:
   trunk/boost/fusion/container/vector.hpp | 10 ++++++++++
   1 files changed, 10 insertions(+), 0 deletions(-)

Modified: trunk/boost/fusion/container/vector.hpp
==============================================================================
--- trunk/boost/fusion/container/vector.hpp (original)
+++ trunk/boost/fusion/container/vector.hpp 2011-09-16 01:12:58 EDT (Fri, 16 Sep 2011)
@@ -8,11 +8,21 @@
 #define FUSION_SEQUENCE_CLASS_VECTOR_10022005_0602
 
 #include <boost/fusion/container/vector/limits.hpp>
+
 #include <boost/fusion/container/vector/vector10.hpp>
+#if (FUSION_MAX_VECTOR_SIZE > 10)
 #include <boost/fusion/container/vector/vector20.hpp>
+#endif
+#if (FUSION_MAX_VECTOR_SIZE > 20)
 #include <boost/fusion/container/vector/vector30.hpp>
+#endif
+#if (FUSION_MAX_VECTOR_SIZE > 30)
 #include <boost/fusion/container/vector/vector40.hpp>
+#endif
+#if (FUSION_MAX_VECTOR_SIZE > 40)
 #include <boost/fusion/container/vector/vector50.hpp>
+#endif
+
 #include <boost/fusion/container/vector/vector.hpp>
 #include <boost/fusion/container/vector/vector_fwd.hpp>
 #include <boost/fusion/container/vector/vector_iterator.hpp>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk