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?


Hi there,
   I've been having problem with the following code section:

#include<proper head>

main()
{
    vector<int> a_i_vec(5, 0);  
    ....
}

if I change the main() code to
    int dummy_int(0);
    vector<int> a_i_vec(5, dummy_int);

it works. You can find the examples for the former code in
several books for STL. It would be appreciated if somebody
could shed a light.

Thanks.

Pinwu


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


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