Boost logo

Boost :

Subject: Re: [boost] Library dependencies and intrer-library code reuse
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2010-03-25 22:50:15


On Thu, Mar 25, 2010 at 7:30 PM, Zachary Turner <divisortheory_at_[hidden]> wrote:
> So anyway, one of the recurring questions that pops up over and over and
> over is that of whether or not a library should reinvent the wheel, or use
> some data structure / class from some other library.

Things are much more complicated. Take for example something as basic
as BOOST_STATIC_ASSERT: it is more complex than it could be because
it supports lots of broken compilers and this injects a lot of headers
into a client library. That is pure overhead for users of that library
if the library doesn't support the broken compilers anyway. In that
case, a simple typedef int a_must_be_less_than_42[a<42]; is preferable
IMO.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


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