1
General Board / Re: Problems with reverse engineering C++
« on: May 14, 2004, 04:35:20 am »
Hi,
I've got the same problem, too, working with EA 3.51 build 609.
I created a small test-class CTest with constructor CTest(), destructor ~CTest() and an operator like this:
.h
CTest& operator=(const Test& test);
.cpp
CTest& CTest::operator=(const CTest& test){
mTestMember1 = test.mTestMember1;
}
I used EA for building up the class and the above code is the result of code engineering.
After reverse engineering the same (unchanged) code the operator= isn't correct anymore:
1. Return type is missing!
2. Operation name is now "operator =" (with a blank before '=').
Now I generate code again without change in EA file and get this:
.h
operator =(const CTest& test);
Does anybody know something about this?
I've got the same problem, too, working with EA 3.51 build 609.
I created a small test-class CTest with constructor CTest(), destructor ~CTest() and an operator like this:
.h
CTest& operator=(const Test& test);
.cpp
CTest& CTest::operator=(const CTest& test){
mTestMember1 = test.mTestMember1;
}
I used EA for building up the class and the above code is the result of code engineering.
After reverse engineering the same (unchanged) code the operator= isn't correct anymore:
1. Return type is missing!
2. Operation name is now "operator =" (with a blank before '=').
Now I generate code again without change in EA file and get this:
.h
operator =(const CTest& test);
Does anybody know something about this?