doubt

Luiz Rafael Culik Guimaraes culikr@uol.com.br
Sun Apr 20 00:40:00 GMT 2003


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



More information about the Libstdc++ mailing list