problème avec error c2770
Bonjour, je suis en train ed débuggué les sources d'un programme, et je planche sur la dernière erreur générée.
Voici le code:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| void WINAPI Server::worldServerThread(){
loop:
worldServerSock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if(worldServerSock!=INVALID_SOCKET){
char serverip[50];
config.readInto(serverip, "192.168.1.7");
if(connectToWorldServer(serverip,23000)){
char servername[50];
config.readInto(servername, "monserveuramoi");
sendWorldServerAuth(servername);
fd_set fds;
do {
FD_ZERO(&fds);
FD_SET (worldServerSock, &fds);
int Select = select(worldServerSock+1,&fds,NULL,NULL,NULL);
if(Select == SOCKET_ERROR) {
setIsActive(false);
} else {
if(FD_ISSET(worldServerSock,&fds)) {
//if(!WSAMain::recvData())
//WSAMain::setIsActive(false);
}
}
Sleep(1);
} while(getIsActive());
}
}
Sleep(100);
goto loop;
} |
Et l'erreur que j'obtiens:
Code:
1 2 3 4 5 6 7
| c:\kims\gameserver\config.h(202) : error C2770: argument(s) modèle explicite(s) non valide(s) pour 'T ConfigFile::string_as_T(const std::string &)'
c:\kims\gameserver\config.h(102) : voir la déclaration de 'ConfigFile::string_as_T'
c:\kims\gameserver\server.cpp(130) : voir la référence à l'instanciation de la fonction modèle 'bool ConfigFile::readInto(T (&),const std::string &) const' en cours de compilation
with
[
T=char [50]
] |
Quelqu'un aurait une ptite idée svp, je vois pas du tout comment résoudre ça.
Merci par avance