Board index » cppbuilder » error with multimap

error with multimap


2005-07-01 10:13:45 AM
cppbuilder59
hi. i'm trying to instatiate a multimap thusly...
#include <map>
#include <utilcls.h>
__fastcall TfrmMain::TfrmMain(TComponent* Owner)
: TForm(Owner)
{
std::multimap<AnsiString, TVariantT>Settings;
}
and i get the following error...
E2299 Cannot generate template specialization from
'_STL::multimap<_Key,_Tp,_Compare,_Alloc>'
i'm not quite sure what i'm doing wrong. can anyone help?
TIA
 
 

Re:error with multimap

i figured it out. the help for TVariant goes to TVariantT which i
obviously wasn't specialising.