Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
Qt Creator 4.14.0
-
None
Description
When an std::pair is used as a member variable, it displays the first value in the pair for the name rather than the variable name. For example:
struct MyStruct { std::pair<int, std::string> myPair; } MyStruct myStruct; myStruct.myPair = {3, "foo"};
In this case, the debugger would show the following once you expand all the members:
-> myStruct -> 3 "foo" first 3 second "foo"
I would expect it to instead show something like:
-> myStruct -> myPair 3, "foo" first 3 second "foo"
Alternatively, it could just show the address for the variable to the right of the name and only the values once you expand it. (which is consistent with other types)