[1.34][fusion] tuple_size doesn't work anymore

Hi there, in the process of recompiling my project with boost 1.34. it seems that tuple_size doesn't work for long tuples anymore. The following code used to work: #define FUSION_MAX_MAP_SIZE 20 #define FUSION_MAX_VECTOR_SIZE 20 #include <boost/fusion/sequence.hpp> #include <boost/fusion/tuple.hpp> struct A { typedef boost::fusion::vector< int , int , int , int , int , int , int , int , int , int , int , int > type; static const std::size_t table_size = boost::fusion::tuple_size<type>::value; }; int main() { return 0; } The code does compile when the number of parameters is 10 or less. Any ideas? Christian

Christian Henning <chhenning <at> gmail.com> writes:
Hi there, in the process of recompiling my project with boost 1.34. it seems that tuple_size doesn't work for long tuples anymore.
Hi Chrisian I don't believe Fusion(2) is officially in boost 1.34. The example you posted does compile (at least with gcc 4) using the latest code on CVS head. If you want to use Boost.Fusion at the moment, I recommend you use cvs head if at all possible. Cheers Dan
participants (2)
-
Christian Henning
-
dan marsden