i got following code:
so far so good everything works expect that one:Code:typedef std::map<int, LPITEMIDLIST> IdIDListMap; IdIDListMap map;
my compiler says:Code:int index = "SomeNumber"; LPITEMIDLIST lPIDL = map[index];
Error 1 error C2678: binary '[' : no operator found which takes a left-hand operand of type 'const IdIDListMap' (or there is no acceptable conversion)
as far as i know the operator is declared that way:
TYPE& operator( key_type& key )
so what am i doing wrong.
Sorry if its horribly stupid or already answered, but i tried searching for sth similiar and gave up after two pages of wrong posts