Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » Help VectorMap !!!
Help VectorMap !!! [message #12827] |
Mon, 19 November 2007 19:38  |
digodigo
Messages: 4 Registered: November 2007
|
Junior Member |

|
|
I have a problem when I try to use 3 arguments
see my source:
private:
VectorMap<String, String> mHostList;
Hosts::Hosts()
{
mHostList.Clear();
FileIn fs;
if (fs.Open(".\\whls.cfg")) {
while (!fs.IsEof()) {
String line = fs.GetLine();
int pos = line.Find(';');
int pos1 = line.Find(';', pos + 1);
int pos2 = line.Find(';', pos1 - 1);
if (pos > 0 && pos1 > 0 && pos2 > 0) {
String id = line.Left(pos);
String ipAddr = line.Mid(pos + 1, pos1 - pos - 1);
String port = line.Right(line.GetLength() - pos2 - 1);
[B]mHostList.Add(id, ipAddr, port);[/B] // error here !!!
}
}
fs.Close();
}
}
That appears error:
C:\MyApps\MyAplication\hosts.cpp(27) : error C2661: 'AMap<K,T,V,HashFn>::Add' : no overloaded functi
on takes 3 arguments
with
[
K=String,
T=String,
V=Vector<String>,
HashFn=StdHash<String>
]
MyAplication: 1 file(s) built in (0:03.31), 3313 msecs / file, duration = 3438 msecs
help me plz
ps: Sorry for my English...
[Updated on: Mon, 19 November 2007 19:40] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Apr 27 22:40:48 CEST 2025
Total time taken to generate the page: 0.03777 seconds
|