Re: vector and iterator in gcc/g++ C++ library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



vtluu@xxxxxxxxxx said:
>     vector<int>::iterator it;
>     int *pi;
>     pi = it;               //error 

Your code presupposes that vector<int>::iterator is realized as or
convertible to int*. This is by no means guaranteed by the standard.

See:

  http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#5_1


Best

Kai-Uwe Bux



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux