This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Simplifing tuples


>I'm still torn on wether I should generate the header with C or with 
>template metaprogramming. Having discussed it with a few people, the 
>arguments fall into one of two categories:
>1) Why write a C program to output the header when you could do it with 
>templates?
>2) Why write complex templates to generate the tuples when you could 
>just write a simple C program to output the header?

FWIW....

I'm more in favor of compile-time construction via metaprogramming (only
as complicated as is absolutely necessary, of course...). In the long
run, this seems like the more robust solution. Also, one without build
dependencies. It seems like either way you'll have some complexity, it's
just where you choose to put it.

Auto-generating header files seems like the wrong approach to me.

However, that said, I think we'll welcome any implementation you choose
to come up with. I really believe that some of the math headers should
probably be auto-generated, for instance, so this approach might be
interesting to see anyway.

best,
benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]