Subject: Re: [boost] [Booster] Or boost is useless for library developers
From: David Abrahams (dave_at_[hidden])
Date: 2010-05-19 19:54:49
At Wed, 19 May 2010 19:49:33 +0000 (UTC),
Gennadiy Rozental wrote:
> Templates do lead to the larger code size and larger compilation
> time. You can hardly argue with that.
I certainly can. It all depends how they are used. If you use other
means of polymorphism (e.g. virtual functions) on a fine-grained
level, the cost in code size of dispatching to trivial functions that
could otherwise be inlined can easily overwhelm âtemplate code bloat.â
Not that I'm saying a networking library would be designed that way...
-- Dave Abrahams Meet me at BoostCon: http://www.boostcon.com BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk