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


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

Re: egcs-1.0.2 STL problem?


>>>>> "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


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