This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: STL vector


On 11/2/05, Mws  wrote:
>  void pop_back() {
>    --this->_M_finish;
>    _Destroy(this->_M_finish);
>  }
>
> the same unchecked stuff :)

 Hi.
  Why do yo think this piece of code is unchecked ?
The check can be inside the iterator's "operator--".
Intall it and run some small test, to examine is there
a check.

By the way, installation of STLport 4.6.2 was problematic
with the newer versions of GCC.I am not sure the problem
was solved in the latest snapshots of STLport. But if you
have gcc 3.3.* or older, there are no problems.

Regards,
 Dima.


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