Imported C++ registered package issue [message #1760972] |
Thu, 04 May 2017 15:08  |
Eclipse User |
|
|
|
I imported the C++ STL registered package into a project and added a property, s, of type string to a class. Then I generated the code.
The generated .h file contains this:
class myHelloWorldClass {
public:
/**
*
*/
string s;
/**
*
*/
void run();
};
The problem is that the type should be "std::string" instead of just "string" so the code will not compile as is.
The workaround is to add "using namespace std;" to the header but this should not be necessary. Is there another way?
I understand that this library is still a work in progress and the bugzilla improvement issue https://bugs.eclipse.org/bugs/show_bug.cgi?id=496934 is still in the NEW state.
Also I would like to help fix this and work on the STL package if someone will point me in the right direction.
Steve
PS This is with version 2.0.3.201703080851.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03750 seconds