Re: [Boost-users] tuples with more than 10 template parameters.
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)
AMDG Mauricio Gomes wrote:
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 ?
The documentation for fusion::tuple is here: http://www.boost.org/libs/fusion/doc/html/fusion/tuple/class_template_tuple.... The maximum size is controlled by FUSION_MAX_VECTOR_SIZE
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.
In Christ, Steven Watanabe
participants (2)
-
Mauricio Gomes
-
Steven Watanabe