From: Douglas Paul Gregor (gregod_at_[hidden])
Date: 2003-05-13 19:40:02
On Tue, 13 May 2003, Bohdan wrote:
> Just curious, isn't it better to make it as template-inline only library ?
> c# implements delegates as a part of language...
> It would be nice to have it in c++ without dealing with linker.
> Main reason why linker is bad is that there a lot of different library
> builds :
> MT <-> single threaded,
> std lib as dll <-> statically linked,
> in dll <-> static lib
> debug <-> release
> And dealing with bunch of libraries ( even if you have one compiler on PC ... )
> isn't good idea for such general and frequenly used library.
> The other option can be conidional #pragma comment ... for compilers which
> support this feature.
> But IMHO template-inline would be still better, of course if there are no
> reasons for current design.
Executables and object files would be _huge_ if it were all inlined. A lot
of work goes into keeping the footprint as small as possible (see the
std::multimap mumbo-jumbo in the implementation).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk