1
Bugs and Issues / Importing map types from C++ source result in wrong or missing associations
« on: December 20, 2016, 12:34:07 am »
Hello,
we try to import code with std::maps from C++. We added std::map<#TYPE#,#TYPE#> in the C++ project settings as addtional collection class.
We tried to import the following test code:
In the model we get one association MyClass ---> KeyType for m_mapKeyValueType (should be to ValueType) and no association m_mapIntValueType.
Setting all kinds of std::map<KeyType, #TYPE#> or std::map<int, #TYPE#> is not an option since there are a lot of possible key types in the project.
How sould we configure the additional collection classes for importing maps correctly?
Regards
Florian Mayer
we try to import code with std::maps from C++. We added std::map<#TYPE#,#TYPE#> in the C++ project settings as addtional collection class.
We tried to import the following test code:
Code: [Select]
class KeyType
{
public:
int m_x;
};
class ValueType
{
public:
void f();
};
class MyClass
{
public:
std::map<KeyType, ValueType> m_mapKeyValueType;
std::map<int, ValueType> m_mapIntValueType;
};
In the model we get one association MyClass ---> KeyType for m_mapKeyValueType (should be to ValueType) and no association m_mapIntValueType.
Setting all kinds of std::map<KeyType, #TYPE#> or std::map<int, #TYPE#> is not an option since there are a lot of possible key types in the project.
How sould we configure the additional collection classes for importing maps correctly?
Regards
Florian Mayer