This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.0.2 STL problem?
- To: pinwu_xu at hotmail dot com
- Subject: Re: egcs-1.0.2 STL problem?
- From: Mark Mitchell <mmitchell at usa dot net>
- Date: Wed, 25 Mar 1998 22:47:05 -0800
- CC: egcs at cygnus dot com
- References: <19980324135940.29107.qmail@hotmail.com>
- Reply-to: mmitchell at usa dot net
>>>>> "Pinwu" == Pinwu Xu <pinwu_xu@hotmail.com> writes:
Pinwu> Hi there, I've been having problem with the following code
Pinwu> section:
Pinwu> #include<proper head>
Pinwu> main() { vector<int> a_i_vec(5, 0); .... }
Pinwu> if I change the main() code to int dummy_int(0);
Pinwu> vector<int> a_i_vec(5, dummy_int);
Pinwu> it works. You can find the examples for the former code in
Pinwu> several books for STL. It would be appreciated if somebody
Pinwu> could shed a light.
I believe some discussion of this is in the FAQ.
Pinwu> Thanks.
Pinwu> Pinwu
Pinwu> ______________________________________________________ Get
Pinwu> Your Private, Free Email at http://www.hotmail.com
--
Mark Mitchell <mmitchell@usa.net>
http://home.earthlink.net/~mbmitchell
Consulting Services Available