Archived Beta Discussions > SlickEdit 2015 v20 Beta Discussion

C++ STL iterator is not recognized

(1/3) > >>

jej45:
consider the following snippet:
#include <map>

std::map<int, int> aMap;
std::map<int, int>::iterator itr = aMap.begin();
itr-> // get message "attempt to use operator '->', but itr is not a pointer"

Dennis:
I was able to reproduce this on Windows using a GNU-C project.  I'll look into it.

Dennis:
This is fixed for the next drop.

jej45:
thanks

jej45:
BTW can you verify for the other containers, typedef and auto? Guess that I am being greedy.
E.g.
typedef std::vector<int>::iterator vecItr;
using vecItr = std::list<int>

std::list<int> aList;
auto itr = aList.begin();

auto itr = std

also,

Navigation

[0] Message Index

[#] Next page

Go to full version