[patch] Preprocessorised tr1::tuple

Gabriel Dos Reis gdr@integrable-solutions.net
Sun Feb 27 12:22:00 GMT 2005


Chris Jefferson <caj@cs.york.ac.uk> writes:

| Gabriel Dos Reis wrote:
| 
| >Douglas Gregor <doug.gregor@gmail.com> writes:
| >
| >| I think pulling in something like the Boost.Preprocessor library would
| > | be overkill for this... Please, please, let's resist the
| > temptation.  Ideally, we should reduce the
| > number of macro usage close to zero.
| Having implemented tuple in 3 ways now (from a C program, stupid
| macros and a macro preprocessor library), I agree that the number of
| macros should be kept as small as possible, but I'm not positive what
| is the best method of avoiding them... I quite like the system of
| generating the headers from a C program, although it would probably
| involve a neater looking program than the one I wrote, and also build
| support.

I think tuple is sufficiently high-level enough to cause less hassle
than, say, <limits> which we used to generate by C++ programs in pre
3.1.x era.

-- Gaby



More information about the Libstdc++ mailing list