cancel
March 26th, 2008, 06:39 AM
Hi,
The following code gives an error:
#include<vector>
template <class range_type, class T>
class range_vector
{
public:
typedef std::vector<T>::iterator iterator;
protected:
std::vector<T> v;
range_type range_start;
};
The problem seems to be with the typedef. Why is this not allowed?
Thanks!
The following code gives an error:
#include<vector>
template <class range_type, class T>
class range_vector
{
public:
typedef std::vector<T>::iterator iterator;
protected:
std::vector<T> v;
range_type range_start;
};
The problem seems to be with the typedef. Why is this not allowed?
Thanks!