Boost logo

Boost Users :

From: Christian Henning (chhenning_at_[hidden])
Date: 2007-05-15 16:15:25


That is general limitation. The documentation says:

"The current version supports tuples with 0-10 elements."

If you want more and more features I would recommend using
boost::fusion. This is an awesome lib. But your compiler will hate it.
;-)

Let me know if you have more questions.

Christian

On 5/15/07, Seweryn Habdank-Wojewódzki <shw_at_[hidden]> wrote:
> Hi
>
> The code:
>
> #include <boost/tuple/tuple.hpp>
>
> typedef
> boost::tuple<int,double,char,int,double,double,double,double,double,double>
> Foo;
>
> int main()
> {}
>
> Is working. But if I add one more field:
>
> #include <boost/tuple/tuple.hpp>
>
> typedef
> boost::tuple<int,double,char,int,double,double,double,double,double,double,double>
> Foo;
>
> int main()
> {}
>
> I have an error:
>
> tuple_type.cpp:3: error: wrong number of template arguments (11, should be
> 10)
> /usr/include/boost/tuple/detail/tuple_basic.hpp:75: error: provided
> for ?template<class T0, class T1, class T2, class T3, class T4, class T5,
> class T6, class T7, class T8, class T9> class boost::tuples::tuple?
> tuple_type.cpp:3: error: invalid type in declaration before ?;? token
>
> Why this error occurs?
>
> My kompiler is gcc 4.1
>
> Regards.
>
> --
>
> |\/\/| Seweryn Habdank-Wojewódzki
> \/\/
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net