delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/02/07:48:52

From: "J.A. Bijsterbosch" <bijster AT worldonline DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: vector<>::resize(int)?
Date: 2 Nov 1997 08:42:06 GMT
Organization: Bijsterbosch Productions
Lines: 29
Message-ID: <01bce6b6$f7610be0$LocalHost@none>
References: <01bce4da$51c500c0$LocalHost AT host DOT ist DOT utl DOT pt>
NNTP-Posting-Host: asd2-p108.worldonline.nl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello Luís,

Luís Coelho <DeepBlack AT geocities DOT com> schreef in artikel
<01bce4da$51c500c0$LocalHost AT host DOT ist DOT utl DOT pt>...
>    Today I discovered that the standard vector<T>::resize(int) (or is it
> unsigned int?) is missing from djgpp's libraries? Has is been renamed or
is
> there another, simple way around? The porpuse of the whole thing is a
> Matrix<T> class which is based on a vector<vector<T>> 
						      ^^^^^^
Hmm, if you have this in your source code, the compiler probably thinks
you're doing an unsupported bitshift.<g> Place a space between the two.
This was stated in the 2nd edition, is that left out in the new one?

About the resize member function, a look in the vector.h file learns that
reserve(int) is the member to use I presume.

> Any help would be apreciated. 
> Luís Coelho.

Hope this helped...

-- 
Greetings from sunny Amsterdam,

    Jan Bijsterbosch

email: bijster AT worldonline DOT nl
http://www.worldonline.nl/~bijster

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019