This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
doubt
- From: "Luiz Rafael Culik Guimaraes" <culikr at uol dot com dot br>
- To: "Lista do gcc" <libstdc++ at gcc dot gnu dot org>
- Date: Sat, 19 Apr 2003 21:41:08 -0300
- Subject: doubt
- Organization: Luiz Rafael Culik Guimaraes - ME
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