Boost logo

Boost Users :

Subject: Re: [Boost-users] tuples with more than 10 template parameters.
From: Mauricio Gomes (mgpensar_at_[hidden])
Date: 2009-02-12 16:16:19


Hi Joel,
Thank you for your response.

Joel Facou wrote:
>Aren't Fusion::tuples extendable by using some macros already ?

I don't know, could you please point me to an example ? How can I do that ?

I searched for a solution and I could not find any so I started to change
the header files myself.
I am stuck on a compiler error right now but I want to give it another try
before posting a question.

Anyway, a macro to extend it would be much better. If some one could point
me in the right direction it would be great.

Thanks again,
Mauricio.

>> Hi,
>>
>> Has anybody extended the 10 template parameters in boost::tuples ?
>>
>> I've written a class named FixedColumnsParser that parses files with
>> fixed columns sizes but now I've got a file with more than 10 columns.
>>
>> In case nobody has done it before I am willing to do it myself and I
>> just need to confirm if these are the only files I need to change to
>> accomplish that:
>>
>> tuple_basic.hpp
>> tuple_basic_no_partial_spec.hpp
>>
>> Thank you for your attention !
>>
>>
>> P.S.:
>> Will the coming variadic templates in C++0x solve this in a more
>> elegant way ?
>> C++ Builder 2009 promisses C++0x support but I have downloaded the
>> trial and it is not supporting variadic templates yet.
>> --

-- 
Mauricio Gomes
Pensar Digital
55-11-8319-9610 (Brazil - mobile)


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