Visual Studio 2005 : erreur C2668
Salut !
J'utilise visual studio 2005 et j'ai un ptit problème :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
//xx.h
namespace abc{
void toto(LPCTSTR);
void titi(LPCTSTR);
}
//xx.cpp
#include "xx.h"
using namespace abc;
void toto(LPCTSTR){
}
void titi(LPCTSTR lpsz){
toto(lpsz);
} |
Et le compilateur me crache l'erreur suivante :
Code:
1 2 3 4 5 6
|
xx.cpp(??) : error C2668: 'toto' : appel ambigu à une fonction surchargée
xx.cpp(??): peut être 'void toto(LPCTSTR)'
xx.h(??): ou 'void abc::toto(LPCTSTR)'
lors de la tentative de mise en correspondance de la liste des arguments '(LPCTSTR)'
|
Alors là je comprends pas... Si vous avez une idée...
Merci :aie: