Hello
I found an issue using namespace : when you define and declare a function
in the same file, semantic register it twice, one in the class you declare
it, other in the namespace.
example :
Toto.h ---
#ifndef TOTO
#define TOTO
namespace toto
{
class Toto
{
public:
int getTutu();
};
int Toto::getTutu()
{
return 0;
}
};
#endif
toto.cpp ---
#include "Toto.h"
int main(void)
{
toto:: // <-- getTutu appears here which is incorect
toto::Toto test;
test.getTutu() // <-- appears here OK!
return 0;
}
Thanks for your replies
Julien
PS: I use cedet from repository (get the 5/12/2008)
|