We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TEnum::GetEnum
Currently if the parameter to TEnum::GetEnums ends in a typedef/alias, it can not find the enums. With the example:
TEnum::GetEnums
enum EFruit {kApple=78, kBanana=29, kCitrus=34}; // std::vector<EFruit> vec; using EFruit_t = EFruit; void repro() { auto type = "std::vector<EFruit>::value_type"; cout << gInterpreter->ClassInfo_IsEnum(type) << endl; cout << TEnum::GetEnum(type) << endl; auto resolved = TClassEdit::ResolveTypedef (type, kTRUE); cout << TEnum::GetEnum(resolved.c_str()) << endl; cout << TEnum::GetEnum("EFruit_t") << endl; }
We get:
1 0 0x267f2a0 0
Where the two '0' indicates that the lookup failed.
This is seen in #10454 and holds up (per se) #11412
The text was updated successfully, but these errors were encountered:
The problem extends to the specification of the underlying integer type, e.g.
enum A : int {}; TEnum::GetEnum("A")->GetUnderlyingType() // --> (EDataType) (kInt_t) : (int) 3
but
enum B : std::int32_t {}; TEnum::GetEnum("B")->GetUnderlyingType() // --> (EDataType) (kNumDataTypes) : (int) 23
Do you want to keep it as part of this issue or should I open a new one?
Sorry, something went wrong.
This should be enough.
We need to open a new issue for #12685 (comment) it is: #15460
pcanal
dpiparo
Successfully merging a pull request may close this issue.
Currently if the parameter to
TEnum::GetEnums
ends in a typedef/alias, it can not find the enums.With the example:
We get:
Where the two '0' indicates that the lookup failed.
This is seen in #10454 and holds up (per se) #11412
The text was updated successfully, but these errors were encountered: