This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: string reserve()


On Fri, Aug 31, 2001 at 04:58:39PM +0100, Colin Thomas wrote:
> I have a program that deals with small strings - 1-2 characters. The default
> capacity() is getting set to 16 (and wasting memory)
> 
> I have tried the following on my 2.95.2 version of gcc

This list is for the C++ library in GCC 3.x.  The string class in 2.95 is
completely different.


> Secondly, how do I know what version of libstdc++ I have got installed - 
> I have libstdc++.so.2.10.0 , but the numbering does not link in with
> anything like libstdc++-2.92 ?

Totally different projects.  The 2.10 thing is something else; the 2.92
is an earlier snapshot of this list's library.


> I hear rumours pertaining to gcc3.0 having libstd auotmatically included

Yes.

-- 
Would I had phrases that are not known, utterances that are strange, in
new language that has not been used, free from repetition, not an utterance
which has grown stale, which men of old have spoken.
                                     - anonymous Egyptian scribe, c.1700 BC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]