[geos-devel] Request for change

strk at refractions.net strk at refractions.net
Wed Mar 1 05:35:32 EST 2006


On Wed, Mar 01, 2006 at 11:25:48AM +0100, Stefan Zschocke wrote:
> The const does not make any difference, as the string constructor still is
> called.
> And the string-ctor does the dynamic memory allocation. 
> With the string declaration the texts are actually duplicated in memory:
> once as constants and once as static string.
> Stefan

Did you check it or is it an assumption ?
I think C++ libs handle consts differently.

There are other cases of static allocations, btw,
are you saying that this is the ony one cousing that
false leak reports ?

--strk;



More information about the geos-devel mailing list