Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2000-09-03 16:52:27


Gary Powell wrote:
> The problem as I see it with template template parameters for containers, is
> that there isn't a fixed number of arguments. If you can only use a vector,
> ggcl might as well use a vector, but if I wanted a set instead it isn't the
> same number of template arguments.

std::set has the same number of non-optional template parameters as std::vector,
so it's actually no problem at all. That is, if you're happy with the defaults
for the optional template parameters.

> To use template template parameters would force us to write a cover template
> that takes the maximum number of arguments,

Not always, as said above.

> The other disadvantage is that maybe some compiler which ggcl currently
> supports doesn't support template template's.

So what? Any reasonable lambda library doesn't work with MSVC, either, but
that's no reason not to have it.

> I can see that Jeremy is resisting this change.

I'm just suggesting an alternative. If it's not an improvement, ignore
me.

Jens Maurer


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk