This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

doubt


Hi

Using gcc 3.2 i got an error that the type nama was not defined

the code is

#include <vector>
#include <list>
#include <map>
#include <algorithm>
#include <functional>
class ZIP_API CZipMap : private std::map<KEY, VALUE>
{
public:
 void SetAt( KEY key, VALUE newValue)
 {
  insert(std::map<KEY, VALUE>::value_type(key, newValue));
 }
 BOOL RemoveKey( KEY key )
 {
  return erase(key) != 0;
 }
 BOOL Lookup( KEY key, VALUE& rValue ) const
 {
  const_iterator iter = find(key);
  if (iter == end())
    return FALSE;
  else
  {
   rValue = iter->second;
   return TRUE;
  }
 }
};

Reading the map include file const_iterator is defined as an type their, why
i get the no typename is defined error

Regards
Luiz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]