'IDA eh vector constructor iterator

i try to decomplile some class via IDA pro, and see this:

`eh vector constructor iterator'(
(char *)this->ObtainPickItemList,
28u,
12,
(void (__thiscall *)(void *))std::string::string,
std::string::~string);

I know 'this->ObtainPickItemList' is std::string array with 12 elements, but what is 28? Thanks in advance!



Solution 1:[1]

28 should be the size of individual std::string object, that is what sizeof(std::string) would return for that particular std::string implementation that was compiled into the binary you're trying to decompile.

Note, that the size might or might not be different from what sizeof(std::string) returns when you try compiling on your platform.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ysakhno