C
Carter
Hi,
I am trying to construct a container of iterators using STL and I seem
to be getting an error which I have been having difficulties figuring
out. The code is as follows:
std::list< std::list<K>::iterator > _scopes;
Which gives the following error:
type/value mismatch at argument 1 in template parameter list for
‘template<class _Tp, class _Alloc> class std::list’
environment.cpp:46: error: expected a type, got
‘std::list::iterator’
environment.cpp:46: error: template argument 2 is invalid
If anyone can shed light on this I would appreciate it.
Thanks in advance,
I am trying to construct a container of iterators using STL and I seem
to be getting an error which I have been having difficulties figuring
out. The code is as follows:
std::list< std::list<K>::iterator > _scopes;
Which gives the following error:
type/value mismatch at argument 1 in template parameter list for
‘template<class _Tp, class _Alloc> class std::list’
environment.cpp:46: error: expected a type, got
‘std::list::iterator’
environment.cpp:46: error: template argument 2 is invalid
If anyone can shed light on this I would appreciate it.
Thanks in advance,