[AGENT++] Why not use stl?

Frank Fock fock at agentpp.com
Thu Aug 5 23:36:30 CEST 2010


Hi Dominik,

When AGENT++ has been initially developed, stl
was not compilable on many operating systems,
because of bugs in the C++ compilers regarding templates.

This might have changed now (hopefully), however I still
not think that it would be a good idea to import a big
library for a very few functions.

Best regards,
Frank

Dominik Vogt schrieb:
>>    2010/8/5 Dominik Vogt <[1]dominik.vogt at external.thalesgroup.com>
>>
>>      Is there a specific reason not to use the stl? �Much code could be
>>      saved by using standard template classes like vector or list. �For
>>      example, all or most of the code in List.h could be removed.
>>     
>
> On Thu, Aug 05, 2010 at 10:44:56AM +0200, Evgeny Sabelskiy wrote:
>   
>>    imho it is not good reason to replace one List.h by external big .so or
>>    .dll dynamic library.
>>     
>
> Actually, the stl is not a dynamic library but a collection of
> template classes and does not need to be linked at run time.  It
> is widely available and well tested, has decent memory management
> and a host of available container classes that could be useful.
>
> I'm not at the moment suggesting to replace the existing list and
> array implementations.  All I want to know is if it's acceptable
> to use stl classes for further library development.
>
> Ciao
>
> Dominik ^_^  ^_^
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
>   





More information about the AGENTPP mailing list