On Wed, Mar 05, 2003 at 06:54:31PM +0100, Felix Kühling wrote: > On Wed, 5 Mar 2003 10:24:12 -0700 Nicholas Leippe <[EMAIL PROTECTED]> > wrote: > > > > Templates provide a great deal of power that you may not want to do > > without. For instance, you could use portions of the STL (always > > good to use the language's standard library since it's already > > debugged and optimized)--you could write your own customized > > allocators for it that handle the different mm mappings. This could > > allow greater compartmentalization--only a few would have to worry > > about _writing_ the allocators, the rest of the devs would only have > > to know which one to use when rather than understand all their icky > > details. Also, how many containers are you going to hand code > > before deciding that a generalized, reusable solution would save you > > all the trouble? > > If you use the standard library you have to start worrying about ABI > compatibility issues. How much trouble is it to write C++ code that > can be linked without the standard library. I mean avoiding things > like std::cout is no problem.
STL won't be necessary. So far I haven't come across anything which could use the STL - the data structures used by the drivers are either too simple to justify using the STL, or too specific that justify dedicate implementations. I don't much about libstdc++'s STL implementation, but probably also requires exception support. > But does C++ use the library behind your back? > AFAIK g++ alway implicitly links with libstdc++. I don't believe there is any dependency of STL on compiled code unless the source actually uses the STL. Most C++ support code for such as global constructors, exceptions and RTTI are outside STL. José Fonseca __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel