Re: linux headers and C++

Steve Dodd (dirk@loth.demon.co.uk)
Tue, 6 Jul 1999 16:26:43 +0100


On Tue, Jul 06, 1999 at 01:45:00PM +0000, Philipp Thomas wrote:

> >And templates remain dangerous bloat-generating territory.
>
> Pardon me, but that's simply FUD. Dangerous, maybe, at least for
> someone that doesn't really understand templates.

Oddly, I'd argue that templates are pretty safe, certainly w.r.t. types.

> Bloat-generating,
> definitely not.

Definitely bloat generating. Each time you use a template with a different
type, the compiler has to effectively make a new class, complete with all
code, for that type. That's a pretty good definition of bloat IMHO.

-- 
Death is only a state of mind.

Only it doesn't leave you much time to think about anything else.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/