Search:

Type: Posts; User: Maelstrom

Search: Search took 0.01 seconds.

  1. Don't worry, that loop initialization was just to...

    Don't worry, that loop initialization was just to illustrate the problem I encountered whenever I tried to traverse an STL vector with iterators. Thanks, though :-)
  2. Thanks! The addition of "typename" specifies...

    Thanks!

    The addition of "typename" specifies that the statement "vector<T>::iterator i" should be treated as a declaration, not a function call, correct?
  3. Cannot declare STL iterators in custom templated classes!

    Suppose we have a templated class with an STL vector as a data member:


    #include <vector>
    using namespace std;

    template <class T>
    class Point
    {
    public:
Results 1 to 3 of 3